i965: Drop BRW_NEW_PUSH_CONSTANT_ALLOCATION from CS packets.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 29 Nov 2016 09:30:18 +0000 (01:30 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 20 May 2017 07:23:10 +0000 (00:23 -0700)
I don't think CS push constant uploading uses the section of L3
controlled by 3DSTATE_PUSH_CONSTANT_ALLOC_XS.  So I don't think
it needs to be re-emitted when that space is reallocated.

The programming note in gen7_allocate_push_constants doesn't
indicate this is necessary, at least.

Reviewed-by: Chris Forbes <chrisforbes@google.com>
src/mesa/drivers/dri/i965/gen7_cs_state.c
src/mesa/drivers/dri/i965/genX_state_upload.c

index cbb6bb1ef26f0da23b5bc985cc91341fce200fe7..26e4264018fe46ee7d76bfee5adac20d6afde8f2 100644 (file)
@@ -133,8 +133,7 @@ const struct brw_tracked_state gen7_cs_push_constants = {
       .brw = BRW_NEW_BATCH |
              BRW_NEW_BLORP |
              BRW_NEW_COMPUTE_PROGRAM |
-             BRW_NEW_CS_PROG_DATA |
-             BRW_NEW_PUSH_CONSTANT_ALLOCATION,
+             BRW_NEW_CS_PROG_DATA,
    },
    .emit = gen7_upload_cs_push_constants,
 };
index 3921a6f2d4be441880bd77b3d1b6c64077468d87..64ba3577383a04907eea011512cb1794d47d7f26 100644 (file)
@@ -3735,7 +3735,6 @@ static const struct brw_tracked_state genX(cs_state) = {
       .brw = BRW_NEW_BATCH |
              BRW_NEW_BLORP |
              BRW_NEW_CS_PROG_DATA |
-             BRW_NEW_PUSH_CONSTANT_ALLOCATION |
              BRW_NEW_SAMPLER_STATE_TABLE |
              BRW_NEW_SURFACES,
    },