i965/cs: Re-emit cs_state when surfaces have changed
authorJordan Justen <jordan.l.justen@intel.com>
Thu, 24 Sep 2015 07:26:59 +0000 (00:26 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Tue, 29 Sep 2015 15:23:47 +0000 (08:23 -0700)
Unlike rendering (BINDING_TABLE_POINTERS_*S), compute doesn't have a
binding table pointers command. Instead it is part of the
MEDIA_INTERFACE_DESCRIPTOR structure loaded by the brw_cs_state atom.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/mesa/drivers/dri/i965/gen7_cs_state.c

index c53aa2338197f41bec095cc3792562c148ea852d..0b88b2c0e71cec521e2f75f49ff9d72a28fcce03 100644 (file)
@@ -183,7 +183,8 @@ const struct brw_tracked_state brw_cs_state = {
       .mesa = _NEW_PROGRAM_CONSTANTS,
       .brw = BRW_NEW_BATCH |
              BRW_NEW_CS_PROG_DATA |
-             BRW_NEW_PUSH_CONSTANT_ALLOCATION,
+             BRW_NEW_PUSH_CONSTANT_ALLOCATION |
+             BRW_NEW_SURFACES,
    },
    .emit = brw_upload_cs_state
 };