summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-08-17 08:04:43 -0700
committerJason Ekstrand <[email protected]>2016-08-29 12:17:34 -0700
commit28991c9601f9ad3c4f4e11da44a26c8ee0427021 (patch)
tree4e426168022d748cc1be3b34f423a319a13c7f7c /src/mesa
parent7ecbb9bada62a50f5e430ead7fff9154a45afb68 (diff)
i965/blorp: Use gen6_upload_urb
Signed-off-by: Jason Ekstrand <[email protected]> Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/genX_blorp_exec.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/genX_blorp_exec.c b/src/mesa/drivers/dri/i965/genX_blorp_exec.c
index ea4c07681bc..68c3c27bfc3 100644
--- a/src/mesa/drivers/dri/i965/genX_blorp_exec.c
+++ b/src/mesa/drivers/dri/i965/genX_blorp_exec.c
@@ -200,9 +200,9 @@ static void
emit_urb_config(struct brw_context *brw,
const struct brw_blorp_params *params)
{
-#if GEN_GEN >= 7
const unsigned vs_entry_size = gen7_blorp_get_vs_entry_size(params);
+#if GEN_GEN >= 7
if (!(brw->ctx.NewDriverState & (BRW_NEW_CONTEXT | BRW_NEW_URB_SIZE)) &&
brw->urb.vsize >= vs_entry_size)
return;
@@ -211,9 +211,7 @@ emit_urb_config(struct brw_context *brw,
gen7_upload_urb(brw, vs_entry_size, false, false);
#else
- blorp_emit(brw, GENX(3DSTATE_URB), urb) {
- urb.VSNumberofURBEntries = brw->urb.max_vs_entries;
- }
+ gen6_upload_urb(brw, vs_entry_size, false, 0);
#endif
}