diff options
author | Kenneth Graunke <[email protected]> | 2012-12-04 11:39:14 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-01-18 21:58:13 -0800 |
commit | a33d1339d5bfb32377be92957a493f0e3d84b31e (patch) | |
tree | e4e46e3d88f48f5d626bd4cbe8454da6d1c2d3ae /src/mesa/drivers/dri | |
parent | 4c6a1d380abdfc85c2862f62719fa3c98c97f7ba (diff) |
i965: Double the push constant space multipliers on Broadwell too.
Broadwell has 2Kb push constant size increments like Haswell GT3.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/gen7_urb.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/gen7_urb.c b/src/mesa/drivers/dri/i965/gen7_urb.c index c37c110fa8e..52736992616 100644 --- a/src/mesa/drivers/dri/i965/gen7_urb.c +++ b/src/mesa/drivers/dri/i965/gen7_urb.c @@ -61,7 +61,8 @@ static void gen7_allocate_push_constants(struct brw_context *brw) { unsigned avail_size = 16; - unsigned multiplier = (brw->is_haswell && brw->gt == 3) ? 2 : 1; + unsigned multiplier = + (brw->gen >= 8 || (brw->is_haswell && brw->gt == 3)) ? 2 : 1; /* BRW_NEW_GEOMETRY_PROGRAM */ bool gs_present = brw->geometry_program; @@ -138,7 +139,8 @@ const struct brw_tracked_state gen7_push_constant_space = { static void gen7_upload_urb(struct brw_context *brw) { - const int push_size_kB = brw->is_haswell && brw->gt == 3 ? 32 : 16; + const int push_size_kB = + (brw->gen >= 8 || (brw->is_haswell && brw->gt == 3)) ? 32 : 16; /* CACHE_NEW_VS_PROG */ unsigned vs_size = MAX2(brw->vs.prog_data->base.urb_entry_size, 1); |