diff options
author | Charmaine Lee <[email protected]> | 2017-11-27 13:24:26 -0800 |
---|---|---|
committer | Brian Paul <[email protected]> | 2018-09-10 13:07:30 -0600 |
commit | 96ef81e39ebb6244b9caad411cdf433eea55a3a3 (patch) | |
tree | 7ba41010187ab2922a29116562c2ff691cb80b81 /src/gallium/drivers/svga | |
parent | 7187a2f7ffecacf63fe68dfe1b651f792c974241 (diff) |
svga: fix depth and coverage mask output declaration
Set the component mask to zero for both registers.
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga')
-rw-r--r-- | src/gallium/drivers/svga/svga_tgsi_vgpu10.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gallium/drivers/svga/svga_tgsi_vgpu10.c b/src/gallium/drivers/svga/svga_tgsi_vgpu10.c index 85074187155..abfbd523605 100644 --- a/src/gallium/drivers/svga/svga_tgsi_vgpu10.c +++ b/src/gallium/drivers/svga/svga_tgsi_vgpu10.c @@ -2122,7 +2122,9 @@ emit_decl_instruction(struct svga_shader_emitter_v10 *emit, unsigned index, unsigned size) { assert(opcode0.opcodeType); - assert(operand0.mask); + assert(operand0.mask || + (operand0.operandType == VGPU10_OPERAND_TYPE_OUTPUT_DEPTH) || + (operand0.operandType == VGPU10_OPERAND_TYPE_OUTPUT_COVERAGE_MASK)); begin_emit_instruction(emit); emit_dword(emit, opcode0.value); @@ -2293,7 +2295,7 @@ emit_fragdepth_output_declaration(struct svga_shader_emitter_v10 *emit) operand0.operandType = VGPU10_OPERAND_TYPE_OUTPUT_DEPTH; operand0.numComponents = VGPU10_OPERAND_1_COMPONENT; operand0.indexDimension = VGPU10_OPERAND_INDEX_0D; - operand0.mask = VGPU10_OPERAND_4_COMPONENT_MASK_ALL; + operand0.mask = 0; emit_decl_instruction(emit, opcode0, operand0, name_token, 0, 1); } @@ -2318,7 +2320,7 @@ emit_samplemask_output_declaration(struct svga_shader_emitter_v10 *emit) operand0.operandType = VGPU10_OPERAND_TYPE_OUTPUT_COVERAGE_MASK; operand0.numComponents = VGPU10_OPERAND_0_COMPONENT; operand0.indexDimension = VGPU10_OPERAND_INDEX_0D; - operand0.mask = VGPU10_OPERAND_4_COMPONENT_MASK_ALL; + operand0.mask = 0; emit_decl_instruction(emit, opcode0, operand0, name_token, 0, 1); } |