summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_state.h
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2015-10-26 00:52:14 -0700
committerKenneth Graunke <kenneth@whitecape.org>2015-10-28 22:05:08 -0700
commit5392328a3218c0a69301badefe8fed79ca0d8642 (patch)
treecf375f1e60fbe0c2a49e18910a9557ea0521f990 /src/mesa/drivers/dri/i965/brw_state.h
parentb3d19d20f27c9169641051ac6f855481e58623b3 (diff)
downloadexternal_mesa3d-5392328a3218c0a69301badefe8fed79ca0d8642.zip
external_mesa3d-5392328a3218c0a69301badefe8fed79ca0d8642.tar.gz
external_mesa3d-5392328a3218c0a69301badefe8fed79ca0d8642.tar.bz2
i965: Make calculate_attr_overrides return the URB read offset.
Traditionally, we've hardcoded "URB Entry Read Offset" to 1 (which represents 2 vec4 varying slots) to skip over the 8 DWord VUE header. In order to support ARB_fragment_layer_viewport, we'll need to read from that header. This patch adds the basic plumbing necessary to calculate a value dynamically and hook it up in the SBE packets. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_state.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_state.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_state.h b/src/mesa/drivers/dri/i965/brw_state.h
index 6fc9c14..7838901 100644
--- a/src/mesa/drivers/dri/i965/brw_state.h
+++ b/src/mesa/drivers/dri/i965/brw_state.h
@@ -345,7 +345,8 @@ calculate_attr_overrides(const struct brw_context *brw,
uint16_t *attr_overrides,
uint32_t *point_sprite_enables,
uint32_t *flat_enables,
- uint32_t *urb_entry_read_length);
+ uint32_t *urb_entry_read_length,
+ uint32_t *urb_entry_read_offset);
/* gen6_surface_state.c */
void gen6_init_vtable_surface_functions(struct brw_context *brw);