aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/blorp
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-01-02 23:59:06 -0800
committerKenneth Graunke <[email protected]>2018-01-22 10:03:52 -0800
commit60f15477dad1fa752a91ecf1c2bf0aabbccbf2e5 (patch)
treea4de71da29d707b9cab1bf0f6f7556f314e8bca5 /src/intel/blorp
parenta9bb067e27cd1d249cede580c50e7e2fc1eef372 (diff)
i965: Drop render_target_start from binding table struct.
We have to start render targets at binding table index 0 in order to use headerless FB write messages, and in fact already assume this in a bunch of places in the code. Let's finish that off, and not bother storing 0 in a struct to pretend to add it in a few places. Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src/intel/blorp')
-rw-r--r--src/intel/blorp/blorp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/intel/blorp/blorp.c b/src/intel/blorp/blorp.c
index e8a2c6135f5..52675ec4ac5 100644
--- a/src/intel/blorp/blorp.c
+++ b/src/intel/blorp/blorp.c
@@ -176,8 +176,10 @@ blorp_compile_fs(struct blorp_context *blorp, void *mem_ctx,
wm_prog_data->base.nr_params = 0;
wm_prog_data->base.param = NULL;
- /* BLORP always just uses the first two binding table entries */
- wm_prog_data->binding_table.render_target_start = BLORP_RENDERBUFFER_BT_INDEX;
+ /* BLORP always uses the first two binding table entries:
+ * - Surface 0 is the render target (which always start from 0)
+ * - Surface 1 is the source texture
+ */
wm_prog_data->base.binding_table.texture_start = BLORP_TEXTURE_BT_INDEX;
nir = brw_preprocess_nir(compiler, nir);