mesa: Rename dd_function_table::BlendBarrier to match latest EXT spec.

This GL entry point was renamed to glFramebufferFetchBarrier() in the
EXT extension on request from Khronos members.  Update the Mesa
codebase to match the latest spec.

Reviewed-by: Plamena Manolova <plamena.manolova@intel.com>
This commit is contained in:
Francisco Jerez 2018-02-12 14:23:25 -08:00
parent 27c829da28
commit d0bef79f12
4 changed files with 9 additions and 9 deletions

View file

@ -313,7 +313,7 @@ brw_memory_barrier(struct gl_context *ctx, GLbitfield barriers)
}
static void
brw_blend_barrier(struct gl_context *ctx)
brw_framebuffer_fetch_barrier(struct gl_context *ctx)
{
struct brw_context *brw = brw_context(ctx);
const struct gen_device_info *devinfo = &brw->screen->devinfo;
@ -443,7 +443,7 @@ void brwInitFragProgFuncs( struct dd_function_table *functions )
functions->LinkShader = brw_link_shader;
functions->MemoryBarrier = brw_memory_barrier;
functions->BlendBarrier = brw_blend_barrier;
functions->FramebufferFetchBarrier = brw_framebuffer_fetch_barrier;
}
struct shader_times {

View file

@ -134,5 +134,5 @@ _mesa_BlendBarrier(void)
return;
}
ctx->Driver.BlendBarrier(ctx);
ctx->Driver.FramebufferFetchBarrier(ctx);
}

View file

@ -963,15 +963,15 @@ struct dd_function_table {
/** @} */
/**
* GL_MESA_shader_framebuffer_fetch_non_coherent rendering barrier.
* GL_EXT_shader_framebuffer_fetch_non_coherent rendering barrier.
*
* On return from this function any framebuffer contents written by
* previous draw commands are guaranteed to be visible from subsequent
* fragment shader invocations using the
* MESA_shader_framebuffer_fetch_non_coherent interface.
* EXT_shader_framebuffer_fetch_non_coherent interface.
*/
/** @{ */
void (*BlendBarrier)(struct gl_context *ctx);
void (*FramebufferFetchBarrier)(struct gl_context *ctx);
/** @} */
/**

View file

@ -55,10 +55,10 @@ st_TextureBarrier(struct gl_context *ctx)
/**
* Called via ctx->Driver.BlendBarrier()
* Called via ctx->Driver.FramebufferFetchBarrier()
*/
static void
st_BlendBarrier(struct gl_context *ctx)
st_FramebufferFetchBarrier(struct gl_context *ctx)
{
struct pipe_context *pipe = st_context(ctx)->pipe;
@ -130,6 +130,6 @@ st_MemoryBarrier(struct gl_context *ctx, GLbitfield barriers)
void st_init_texture_barrier_functions(struct dd_function_table *functions)
{
functions->TextureBarrier = st_TextureBarrier;
functions->BlendBarrier = st_BlendBarrier;
functions->FramebufferFetchBarrier = st_FramebufferFetchBarrier;
functions->MemoryBarrier = st_MemoryBarrier;
}