~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/gallium/drivers/softpipe/sp_flush.c

  • Committer: mmach
  • Date: 2023-11-02 21:31:35 UTC
  • Revision ID: netbit73@gmail.com-20231102213135-18d4tzh7tj0uz752
2023-11-02 22:11:57

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
   if (softpipe->zsbuf_cache)
76
76
      sp_flush_tile_cache(softpipe->zsbuf_cache);
77
77
 
78
 
   softpipe->dirty_render_cache = FALSE;
 
78
   softpipe->dirty_render_cache = false;
79
79
 
80
80
   /* Enable to dump BMPs of the color/depth buffers each frame */
81
81
#if 0
111
111
 *
112
112
 * TODO: move this logic to an auxiliary library?
113
113
 */
114
 
boolean
 
114
bool
115
115
softpipe_flush_resource(struct pipe_context *pipe,
116
116
                        struct pipe_resource *texture,
117
117
                        unsigned level,
118
118
                        int layer,
119
119
                        unsigned flush_flags,
120
 
                        boolean read_only,
121
 
                        boolean cpu_access,
122
 
                        boolean do_not_block)
 
120
                        bool read_only,
 
121
                        bool cpu_access,
 
122
                        bool do_not_block)
123
123
{
124
124
   unsigned referenced;
125
125
 
144
144
         struct pipe_fence_handle *fence = NULL;
145
145
 
146
146
         if (do_not_block)
147
 
            return FALSE;
 
147
            return false;
148
148
 
149
149
         softpipe_flush(pipe, flush_flags, &fence);
150
150
 
154
154
             * have fences.
155
155
             */
156
156
            pipe->screen->fence_finish(pipe->screen, NULL, fence,
157
 
                                       PIPE_TIMEOUT_INFINITE);
 
157
                                       OS_TIMEOUT_INFINITE);
158
158
            pipe->screen->fence_reference(pipe->screen, &fence, NULL);
159
159
         }
160
160
      } else {
166
166
      }
167
167
   }
168
168
 
169
 
   return TRUE;
 
169
   return true;
170
170
}
171
171
 
172
172
void softpipe_texture_barrier(struct pipe_context *pipe, unsigned flags)
187
187
   if (softpipe->zsbuf_cache)
188
188
      sp_flush_tile_cache(softpipe->zsbuf_cache);
189
189
 
190
 
   softpipe->dirty_render_cache = FALSE;
 
190
   softpipe->dirty_render_cache = false;
191
191
}
192
192
 
193
193
void softpipe_memory_barrier(struct pipe_context *pipe, unsigned flags)