Lines Matching refs:barriers

38 memory_barrier(struct gl_context *ctx, GLbitfield barriers)
43 if (barriers & GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT)
45 if (barriers & GL_ELEMENT_ARRAY_BARRIER_BIT)
47 if (barriers & GL_UNIFORM_BARRIER_BIT)
49 if (barriers & GL_TEXTURE_FETCH_BARRIER_BIT)
51 if (barriers & GL_SHADER_IMAGE_ACCESS_BARRIER_BIT)
53 if (barriers & GL_COMMAND_BARRIER_BIT)
55 if (barriers & GL_PIXEL_BUFFER_BARRIER_BIT) {
63 if (barriers & GL_TEXTURE_UPDATE_BARRIER_BIT) {
73 if (barriers & GL_BUFFER_UPDATE_BARRIER_BIT) {
82 if (barriers & GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT)
84 if (barriers & GL_QUERY_BUFFER_BARRIER_BIT)
86 if (barriers & GL_FRAMEBUFFER_BARRIER_BIT)
88 if (barriers & GL_TRANSFORM_FEEDBACK_BARRIER_BIT)
90 if (barriers & GL_ATOMIC_COUNTER_BARRIER_BIT)
92 if (barriers & GL_SHADER_STORAGE_BARRIER_BIT)
114 _mesa_MemoryBarrier(GLbitfield barriers)
118 memory_barrier(ctx, barriers);
122 memory_barrier_by_region(struct gl_context *ctx, GLbitfield barriers,
134 * "When barriers is ALL_BARRIER_BITS, shader memory accesses will be
138 * That is, if barriers is the special value GL_ALL_BARRIER_BITS, then all
139 * barriers allowed by glMemoryBarrierByRegion should be activated."
141 if (barriers == GL_ALL_BARRIER_BITS) {
148 * "An INVALID_VALUE error is generated if barriers is not the special
152 if (!no_error && (barriers & ~all_allowed_bits) != 0) {
157 memory_barrier(ctx, barriers);
161 _mesa_MemoryBarrierByRegion_no_error(GLbitfield barriers)
164 memory_barrier_by_region(ctx, barriers, true);
168 _mesa_MemoryBarrierByRegion(GLbitfield barriers)
171 memory_barrier_by_region(ctx, barriers, false);