From: Jason Ekstrand Date: Thu, 18 Aug 2016 13:29:51 +0000 (-0700) Subject: i965/blorp: Use BT_INDEX enums for setting up the binding table X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8a39069dfe070f663e0a9cb2288f6af6d81cb275;p=mesa.git i965/blorp: Use BT_INDEX enums for setting up the binding table Signed-off-by: Jason Ekstrand Reviewed-by: Topi Pohjolainen --- 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);