mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 22:08:26 +02:00
r300g: remove the hack with OPCODE_RET
RET was interpreted as END, which was wrong. Instead, if a shader contains RET in the main function, it will fail to compile with an error message from now on. The hack is from early days.
This commit is contained in:
parent
2d2d6a80c1
commit
b6e2c32626
1 changed files with 1 additions and 4 deletions
|
|
@ -363,10 +363,7 @@ void r300_tgsi_to_rc(struct tgsi_to_rc * ttr,
|
|||
break;
|
||||
case TGSI_TOKEN_TYPE_INSTRUCTION:
|
||||
inst = &parser.FullToken.FullInstruction;
|
||||
/* This hack with the RET opcode woudn't work with
|
||||
* conditionals. */
|
||||
if (inst->Instruction.Opcode == TGSI_OPCODE_END ||
|
||||
inst->Instruction.Opcode == TGSI_OPCODE_RET) {
|
||||
if (inst->Instruction.Opcode == TGSI_OPCODE_END) {
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue