aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_gs_surface_state.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2017-09-24 19:59:41 -0700
committerKenneth Graunke <[email protected]>2017-09-26 15:29:16 -0700
commit17eb2afada7b310e71abd3f4b9026c5178ba91cb (patch)
tree74773078b996040495e698a625c916fd7a3ac628 /src/mesa/drivers/dri/i965/brw_gs_surface_state.c
parentb99cf705c87eeea8337ac0045937e4da579af358 (diff)
i965: Convert brw->*_program into a brw->programs[i] array.
This makes it easier to loop over programs. Reviewed-by: Alejandro PiƱeiro <[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.c7
1 files changed, 4 insertions, 3 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 f79ce53d9a5..570f3fb4dd2 100644
--- a/src/mesa/drivers/dri/i965/brw_gs_surface_state.c
+++ b/src/mesa/drivers/dri/i965/brw_gs_surface_state.c
@@ -41,7 +41,8 @@ brw_upload_gs_pull_constants(struct brw_context *brw)
struct brw_stage_state *stage_state = &brw->gs.base;
/* BRW_NEW_GEOMETRY_PROGRAM */
- struct brw_program *gp = (struct brw_program *) brw->geometry_program;
+ struct brw_program *gp =
+ (struct brw_program *) brw->programs[MESA_SHADER_GEOMETRY];
if (!gp)
return;
@@ -94,7 +95,7 @@ static void
brw_upload_gs_abo_surfaces(struct brw_context *brw)
{
/* _NEW_PROGRAM */
- const struct gl_program *gp = brw->geometry_program;
+ const struct gl_program *gp = brw->programs[MESA_SHADER_GEOMETRY];
if (gp) {
/* BRW_NEW_GS_PROG_DATA */
@@ -116,7 +117,7 @@ static void
brw_upload_gs_image_surfaces(struct brw_context *brw)
{
/* BRW_NEW_GEOMETRY_PROGRAM */
- const struct gl_program *gp = brw->geometry_program;
+ const struct gl_program *gp = brw->programs[MESA_SHADER_GEOMETRY];
if (gp) {
/* BRW_NEW_GS_PROG_DATA, BRW_NEW_IMAGE_UNITS, _NEW_TEXTURE */