[Mesa-dev] [PATCH v2 59/82] i965: do not emit_bool_to_cond_code with ssbo load expressions
Iago Toral Quiroga
itoral at igalia.com
Wed Jun 3 00:01:49 PDT 2015
From: Kristian Høgsberg <krh at bitplanet.net>
We do the same with ubo load expressions.
---
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
index dbdf0ac..83736a5 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
@@ -788,7 +788,8 @@ vec4_visitor::emit_bool_to_cond_code(ir_rvalue *ir,
*predicate = BRW_PREDICATE_NORMAL;
- if (expr && expr->operation != ir_binop_ubo_load) {
+ if (expr && expr->operation != ir_binop_ubo_load &&
+ expr->operation != ir_binop_ssbo_load) {
src_reg op[3];
vec4_instruction *inst;
@@ -936,7 +937,8 @@ vec4_visitor::emit_if_gen6(ir_if *ir)
{
ir_expression *expr = ir->condition->as_expression();
- if (expr && expr->operation != ir_binop_ubo_load) {
+ if (expr && expr->operation != ir_binop_ubo_load &&
+ expr->operation != ir_binop_ssbo_load) {
src_reg op[3];
dst_reg temp;
--
1.9.1
More information about the mesa-dev
mailing list