i965/blorp: Use BT_INDEX enums for setting up the binding table
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 18 Aug 2016 13:29:51 +0000 (06:29 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 29 Aug 2016 19:17:34 +0000 (12:17 -0700)
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/blorp.c

index be5adce32951217952b5bc16ee888c6cc05a1358..de05b81cbfc3fe63ff51fe585ea66d891cb2fe89 100644 (file)
@@ -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);