diff options
author | Timothy Arceri <[email protected]> | 2016-11-11 11:45:54 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2016-11-19 09:35:58 +1100 |
commit | c20564ae3ec2b5ac6bee23751d53a92b2dc09067 (patch) | |
tree | 9db3be4f51b83d177af29bc28214ec76f95993aa /src/mesa/drivers/dri/i965/brw_gs_surface_state.c | |
parent | 9d96d3803ab5dc896d4844ac785db57bb1717f91 (diff) |
glsl/i965: move per stage AtomicBuffers list to gl_program
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_gs_surface_state.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_gs_surface_state.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_gs_surface_state.c b/src/mesa/drivers/dri/i965/brw_gs_surface_state.c index f9cd18989f7..cf56acfd99a 100644 --- a/src/mesa/drivers/dri/i965/brw_gs_surface_state.c +++ b/src/mesa/drivers/dri/i965/brw_gs_surface_state.c @@ -99,16 +99,12 @@ const struct brw_tracked_state brw_gs_ubo_surfaces = { static void brw_upload_gs_abo_surfaces(struct brw_context *brw) { - struct gl_context *ctx = &brw->ctx; /* _NEW_PROGRAM */ - struct gl_shader_program *prog = - ctx->_Shader->CurrentProgram[MESA_SHADER_GEOMETRY]; const struct gl_program *gp = brw->geometry_program; - if (gp && prog) { + if (gp) { /* BRW_NEW_GS_PROG_DATA */ - brw_upload_abo_surfaces(brw, prog->_LinkedShaders[MESA_SHADER_GEOMETRY], - gp, &brw->gs.base, brw->gs.base.prog_data); + brw_upload_abo_surfaces(brw, gp, &brw->gs.base, brw->gs.base.prog_data); } } |