i965/vs: Fix types of varying outputs.
For structs/arrays/matrices, they were ending up as uint because we forgot to set them. All varyings in GLSL 1.20 are of base type float, so just force the matter here (which gets inherited at emit_urb_writes() time). Fixes vs-varying-array-mat2-col-rd.
This commit is contained in:
@@ -646,6 +646,7 @@ vec4_visitor::visit(ir_variable *ir)
|
||||
for (int i = 0; i < type_size(ir->type); i++) {
|
||||
output_reg[ir->location + i] = *reg;
|
||||
output_reg[ir->location + i].reg_offset = i;
|
||||
output_reg[ir->location + i].type = BRW_REGISTER_TYPE_F;
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user