glsl: drop ir_binop_ubo_load
This was missed in e566b54a59
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26330>
This commit is contained in:
committed by
Marge Bot
parent
9528d050a4
commit
1b7107efe4
@@ -1922,11 +1922,6 @@ nir_visitor::visit(ir_expression *ir)
|
||||
return;
|
||||
}
|
||||
|
||||
case ir_binop_ubo_load:
|
||||
/* UBO loads should only have been lowered in GLSL IR for non-nir drivers,
|
||||
* NIR drivers make use of gl_nir_lower_buffers() instead.
|
||||
*/
|
||||
unreachable("Invalid operation nir doesn't want lowered ubo loads");
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -1538,7 +1538,6 @@ public:
|
||||
operation == ir_binop_dot ||
|
||||
operation == ir_binop_vector_extract ||
|
||||
operation == ir_triop_vector_insert ||
|
||||
operation == ir_binop_ubo_load ||
|
||||
operation == ir_quadop_vector;
|
||||
}
|
||||
|
||||
|
||||
@@ -712,12 +712,6 @@ ir_expression_operation = [
|
||||
|
||||
operation("pow", 2, source_types=(float_type,), c_expression="powf({src0}, {src1})"),
|
||||
|
||||
# Load a value the size of a given GLSL type from a uniform block.
|
||||
#
|
||||
# operand0 is the ir_constant uniform block index in the linked shader.
|
||||
# operand1 is a byte offset within the uniform block.
|
||||
operation("ubo_load", 2),
|
||||
|
||||
# Multiplies a number by two to a power, part of ARB_gpu_shader5.
|
||||
operation("ldexp", 2,
|
||||
all_signatures=((float_type, (float_type, int_type)),
|
||||
|
||||
@@ -847,12 +847,6 @@ ir_validate::visit_leave(ir_expression *ir)
|
||||
assert(ir->operands[0]->type == ir->operands[1]->type);
|
||||
break;
|
||||
|
||||
case ir_binop_ubo_load:
|
||||
assert(ir->operands[0]->type == glsl_type::uint_type);
|
||||
|
||||
assert(ir->operands[1]->type == glsl_type::uint_type);
|
||||
break;
|
||||
|
||||
case ir_binop_ldexp:
|
||||
assert(ir->operands[0]->type == ir->type);
|
||||
assert(ir->operands[0]->type->is_float_32_64());
|
||||
|
||||
Reference in New Issue
Block a user