mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 17:20:10 +01:00
ir_to_mesa: Handle constant matrices.
There's not much to it since we're not actually storing constant data yet.
This commit is contained in:
parent
f4bd7f262e
commit
7672064756
1 changed files with 3 additions and 3 deletions
|
|
@ -943,8 +943,6 @@ ir_to_mesa_visitor::visit(ir_constant *ir)
|
|||
{
|
||||
ir_to_mesa_src_reg src_reg;
|
||||
|
||||
assert(!ir->type->is_matrix());
|
||||
|
||||
assert(ir->type->base_type == GLSL_TYPE_FLOAT ||
|
||||
ir->type->base_type == GLSL_TYPE_UINT ||
|
||||
ir->type->base_type == GLSL_TYPE_INT ||
|
||||
|
|
@ -957,11 +955,13 @@ ir_to_mesa_visitor::visit(ir_constant *ir)
|
|||
/* FINISHME: Do something with the constant values for now.
|
||||
*/
|
||||
src_reg.file = PROGRAM_CONSTANT;
|
||||
src_reg.index = this->next_constant++;
|
||||
src_reg.index = this->next_constant;
|
||||
src_reg.swizzle = SWIZZLE_NOOP;
|
||||
src_reg.reladdr = false;
|
||||
src_reg.negate = 0;
|
||||
|
||||
this->next_constant += type_size(ir->type);
|
||||
|
||||
this->result = src_reg;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue