summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-08-18 06:29:51 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2016-08-29 12:17:34 -0700
commit8a39069dfe070f663e0a9cb2288f6af6d81cb275 (patch)
tree194015f6426aeb672f27d54f4a78a06d2db590bb /src/mesa
parent1367af159e6791c230f08ba77311f532f6aede07 (diff)
i965/blorp: Use BT_INDEX enums for setting up the binding table
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/blorp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/blorp.c b/src/mesa/drivers/dri/i965/blorp.c
index be5adce3295..de05b81cbfc 100644
--- a/src/mesa/drivers/dri/i965/blorp.c
+++ b/src/mesa/drivers/dri/i965/blorp.c
@@ -181,8 +181,8 @@ brw_blorp_compile_nir_shader(struct brw_context *brw, struct nir_shader *nir,
wm_prog_data.base.param = NULL;
/* BLORP always just uses the first two binding table entries */
- wm_prog_data.binding_table.render_target_start = 0;
- wm_prog_data.base.binding_table.texture_start = 1;
+ wm_prog_data.binding_table.render_target_start = BLORP_RENDERBUFFER_BT_INDEX;
+ wm_prog_data.base.binding_table.texture_start = BLORP_TEXTURE_BT_INDEX;
nir = brw_preprocess_nir(compiler, nir);
nir_remove_dead_variables(nir, nir_var_shader_in);