mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-06 10:00:30 +01:00
i965/blorp/gen7: Prepare re-using for gen8
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
f1ddfa8512
commit
e04b3cdf33
1 changed files with 4 additions and 2 deletions
|
|
@ -47,7 +47,9 @@
|
|||
static void
|
||||
gen7_blorp_emit_urb_config(struct brw_context *brw)
|
||||
{
|
||||
unsigned urb_size = (brw->is_haswell && brw->gt == 3) ? 32 : 16;
|
||||
const unsigned urb_size =
|
||||
(brw->gen >= 8 || (brw->is_haswell && brw->gt == 3)) ? 32 : 16;
|
||||
|
||||
gen7_emit_push_constant_state(brw,
|
||||
urb_size / 2 /* vs_size */,
|
||||
0 /* hs_size */,
|
||||
|
|
@ -348,7 +350,7 @@ gen7_blorp_emit_gs_disable(struct brw_context *brw)
|
|||
* whole fixed function pipeline" means to emit a PIPE_CONTROL with the "CS
|
||||
* Stall" bit set.
|
||||
*/
|
||||
if (!brw->is_haswell && brw->gt == 2 && brw->gs.enabled)
|
||||
if (brw->gen < 8 && !brw->is_haswell && brw->gt == 2 && brw->gs.enabled)
|
||||
gen7_emit_cs_stall_flush(brw);
|
||||
|
||||
BEGIN_BATCH(7);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue