i965/blorp: Use gen6_upload_urb
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 17 Aug 2016 15:04:43 +0000 (08:04 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 29 Aug 2016 19:17:34 +0000 (12:17 -0700)
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/genX_blorp_exec.c

index ea4c07681bcb6fd0ea7f1726259548b99b825e3e..68c3c27bfc357922510c5c0b527f89f08088f40d 100644 (file)
@@ -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
 }