summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTopi Pohjolainen <topi.pohjolainen@intel.com>2015-02-04 14:36:18 +0200
committerTopi Pohjolainen <topi.pohjolainen@intel.com>2015-03-30 10:27:20 +0300
commit55016d28ae2f69a8f27c456e4c862ae4d6f730a0 (patch)
tree186202ce38d194894806ae5ff1d3c3ae5c1d297b
parente23d6d1aecd57095a7d97c85318cba5eb447a97e (diff)
i965/blorp: Remove unnecessary check if program is in use
If there is now wm program, the given offset is always zero anyway. Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
-rw-r--r--src/mesa/drivers/dri/i965/gen6_blorp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/gen6_blorp.cpp b/src/mesa/drivers/dri/i965/gen6_blorp.cpp
index c7741da9b7..6f59d4d803 100644
--- a/src/mesa/drivers/dri/i965/gen6_blorp.cpp
+++ b/src/mesa/drivers/dri/i965/gen6_blorp.cpp
@@ -711,7 +711,7 @@ gen6_blorp_emit_wm_config(struct brw_context *brw,
BEGIN_BATCH(9);
OUT_BATCH(_3DSTATE_WM << 16 | (9 - 2));
- OUT_BATCH(params->use_wm_prog ? prog_offset : 0);
+ OUT_BATCH(prog_offset);
OUT_BATCH(dw2);
OUT_BATCH(0); /* No scratch needed */
OUT_BATCH(dw4);