mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 14:38:06 +02:00
glsl: Request an Nx1 type instance in ir_quadop_vector lowering pass.
No types have 0 columns. The glsl_type::get_instance method contains
if ((rows < 1) || (rows > 4) || (columns < 1) || (columns > 4))
return error_type;
To get a vector, use columns = 1.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Olivier Galibert <galibert@pobox.com>
This commit is contained in:
parent
13cb99dc73
commit
9d998a2a59
1 changed files with 1 additions and 1 deletions
|
|
@ -183,7 +183,7 @@ lower_vector_visitor::handle_rvalue(ir_rvalue **rvalue)
|
|||
if (assigned > 0) {
|
||||
ir_constant *const c =
|
||||
new(mem_ctx) ir_constant(glsl_type::get_instance(expr->type->base_type,
|
||||
assigned, 0),
|
||||
assigned, 1),
|
||||
&d);
|
||||
ir_dereference *const lhs = new(mem_ctx) ir_dereference_variable(temp);
|
||||
ir_assignment *const assign =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue