[Mesa-dev] [PATCH] i965/blorb: remove dead code in brw_blorp_const_color_program::compile()

Juha-Pekka Heikkila juhapekka.heikkila at gmail.com
Fri Apr 22 12:01:27 UTC 2016


base_mrf is unsigned, checking if its greater or equal to zero will
not fail.

Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
---
 src/mesa/drivers/dri/i965/brw_blorp_clear.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp b/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp
index 51f915d..06ac69e 100644
--- a/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp
+++ b/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp
@@ -314,7 +314,7 @@ brw_blorp_const_color_program::compile(struct brw_context *brw,
    /* Now write to the render target and terminate the thread */
    brw_fb_WRITE(&func,
                 16 /* dispatch_width */,
-                base_mrf >= 0 ? brw_message_reg(base_mrf) : mrf_rt_write,
+                brw_message_reg(base_mrf),
                 brw_null_reg() /* header */,
                 msg_type,
                 BRW_BLORP_RENDERBUFFER_BINDING_TABLE_INDEX,
-- 
1.9.1



More information about the mesa-dev mailing list