mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
ir_to_mesa: Add support for discard instructions.
Fixes glsl-fs-discard-01.
This commit is contained in:
parent
f5b3b2a01a
commit
5e4dd061d1
1 changed files with 3 additions and 2 deletions
|
|
@ -1342,9 +1342,10 @@ ir_to_mesa_visitor::visit(ir_return *ir)
|
|||
void
|
||||
ir_to_mesa_visitor::visit(ir_discard *ir)
|
||||
{
|
||||
assert(0);
|
||||
assert(ir->condition == NULL); /* FINISHME */
|
||||
|
||||
ir->condition->accept(this);
|
||||
ir_to_mesa_emit_op1(ir, OPCODE_KIL_NV,
|
||||
ir_to_mesa_undef_dst, ir_to_mesa_undef);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue