diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2013-12-09 23:29:35 -0800 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2013-12-10 11:36:23 +0000 |
commit | fdbdc7f325af9b42684fc6c7100cb57c52b31c4a (patch) | |
tree | 4a7995c5afc3bdf7f3adaf1340333d76a2e267ce /lib/rendercopy_gen8.c | |
parent | 8cd3a9d5438a5e6961823c15fd41ae02b09c7c9b (diff) |
rendercopy/bdw: Emit 3DSTATE_WM_HZ_OP.
We don't want depth/stencil fast clears or HiZ resolves; we want normal
drawing. Without this, the pixel pipeline doesn't work.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Cc: Ben Widawsky <ben@bwidawsk.net>
Cc: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'lib/rendercopy_gen8.c')
-rw-r--r-- | lib/rendercopy_gen8.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/rendercopy_gen8.c b/lib/rendercopy_gen8.c index 1a137dd9..38dc0e7d 100644 --- a/lib/rendercopy_gen8.c +++ b/lib/rendercopy_gen8.c @@ -679,7 +679,17 @@ gen8_emit_ds(struct intel_batchbuffer *batch) { } static void +gen8_emit_wm_hz_op(struct intel_batchbuffer *batch) { + OUT_BATCH(GEN8_3DSTATE_WM_HZ_OP | (5-2)); + OUT_BATCH(0); + OUT_BATCH(0); + OUT_BATCH(0); + OUT_BATCH(0); +} + +static void gen8_emit_null_state(struct intel_batchbuffer *batch) { + gen8_emit_wm_hz_op(batch); gen8_emit_hs(batch); OUT_BATCH(GEN7_3DSTATE_TE | (4-2)); OUT_BATCH(0); |