summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/gen7_disable.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2013-06-11 10:31:39 -0700
committerKenneth Graunke <[email protected]>2013-06-11 10:53:44 -0700
commit3dacb7d40b3a15be1133deaac55b993e8b7809dc (patch)
tree407ec5891eb073d3669f6b05eef1f5f1dd4bfe7b /src/mesa/drivers/dri/i965/gen7_disable.c
parent42adf5f0dd807c43a13df62dc1aa6774de07cd59 (diff)
Revert "i965: Disable unused pipeline stages once at startup on Gen7+."
This reverts commit 6c966ccf07bcaf64fba1a9b699440c30dc96e732. Apparently causes GPU hangs. Conflicts: src/mesa/drivers/dri/i965/brw_state.h src/mesa/drivers/dri/i965/brw_state_upload.c
Diffstat (limited to 'src/mesa/drivers/dri/i965/gen7_disable.c')
-rw-r--r--src/mesa/drivers/dri/i965/gen7_disable.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/gen7_disable.c b/src/mesa/drivers/dri/i965/gen7_disable.c
index c152d0accaa..aaf88a8bba8 100644
--- a/src/mesa/drivers/dri/i965/gen7_disable.c
+++ b/src/mesa/drivers/dri/i965/gen7_disable.c
@@ -26,8 +26,8 @@
#include "brw_defines.h"
#include "intel_batchbuffer.h"
-void
-gen7_disable_unused_stages(struct brw_context *brw)
+static void
+disable_stages(struct brw_context *brw)
{
struct intel_context *intel = &brw->intel;
@@ -123,3 +123,12 @@ gen7_disable_unused_stages(struct brw_context *brw)
OUT_BATCH(0);
ADVANCE_BATCH();
}
+
+const struct brw_tracked_state gen7_disable_stages = {
+ .dirty = {
+ .mesa = 0,
+ .brw = BRW_NEW_CONTEXT,
+ .cache = 0,
+ },
+ .emit = disable_stages,
+};