From c20564ae3ec2b5ac6bee23751d53a92b2dc09067 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Fri, 11 Nov 2016 11:45:54 +1100 Subject: glsl/i965: move per stage AtomicBuffers list to gl_program Reviewed-by: Emil Velikov --- src/mesa/drivers/dri/i965/brw_gs_surface_state.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/mesa/drivers/dri/i965/brw_gs_surface_state.c') 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); } } -- cgit v1.2.3