mesa: remove unused PROGRAM_WRITE_ONLY

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32779>
This commit is contained in:
Marek Olšák
2024-12-24 09:36:24 -05:00
committed by Marge Bot
parent 14956aa0f2
commit 49f737bc14
2 changed files with 3 additions and 4 deletions

View File

@@ -59,7 +59,6 @@ typedef enum
PROGRAM_STATE_VAR, /**< gl_program->Parameters[] */
PROGRAM_CONSTANT, /**< gl_program->Parameters[] */
PROGRAM_UNIFORM, /**< gl_program->Parameters[] */
PROGRAM_WRITE_ONLY, /**< A dummy, write-only register */
PROGRAM_ADDRESS, /**< machine->AddressReg */
PROGRAM_UNDEFINED, /**< Invalid/TBD value */
PROGRAM_FILE_MAX

View File

@@ -197,7 +197,7 @@ _mesa_layout_parameters(struct asm_parser_state *state)
if (inst->SrcReg[i].Base.RelAddr ||
inst->SrcReg[i].Base.File <= PROGRAM_OUTPUT ||
inst->SrcReg[i].Base.File >= PROGRAM_WRITE_ONLY ||
inst->SrcReg[i].Base.File >= PROGRAM_ADDRESS ||
p->Type != PROGRAM_CONSTANT)
continue;
@@ -234,7 +234,7 @@ _mesa_layout_parameters(struct asm_parser_state *state)
if (inst->SrcReg[i].Base.RelAddr ||
inst->SrcReg[i].Base.File <= PROGRAM_OUTPUT ||
inst->SrcReg[i].Base.File >= PROGRAM_WRITE_ONLY ||
inst->SrcReg[i].Base.File >= PROGRAM_ADDRESS ||
p->Type != PROGRAM_STATE_VAR)
continue;
@@ -271,7 +271,7 @@ _mesa_layout_parameters(struct asm_parser_state *state)
if (inst->SrcReg[i].Base.RelAddr ||
inst->SrcReg[i].Base.File <= PROGRAM_OUTPUT ||
inst->SrcReg[i].Base.File >= PROGRAM_WRITE_ONLY ||
inst->SrcReg[i].Base.File >= PROGRAM_ADDRESS ||
p->Type != PROGRAM_STATE_VAR)
continue;