summaryrefslogtreecommitdiffstats
path: root/src/mesa/program/program_parse_extra.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/program/program_parse_extra.c')
-rw-r--r--src/mesa/program/program_parse_extra.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mesa/program/program_parse_extra.c b/src/mesa/program/program_parse_extra.c
index ae98b782b70..b4fd1b11003 100644
--- a/src/mesa/program/program_parse_extra.c
+++ b/src/mesa/program/program_parse_extra.c
@@ -36,12 +36,12 @@
int
_mesa_parse_instruction_suffix(const struct asm_parser_state *state,
const char *suffix,
- struct prog_instruction *inst)
+ struct asm_opcode *inst)
{
- inst->CondUpdate = 0;
- inst->CondDst = 0;
- inst->SaturateMode = SATURATE_OFF;
- inst->Precision = FLOAT32;
+ inst->cond_update = 0;
+ inst->cond_dst = 0;
+ inst->saturate_mode = SATURATE_OFF;
+ inst->precision = FLOAT32;
/* The first possible suffix element is the precision specifier from
@@ -50,15 +50,15 @@ _mesa_parse_instruction_suffix(const struct asm_parser_state *state,
if (state->option.NV_fragment) {
switch (suffix[0]) {
case 'H':
- inst->Precision = FLOAT16;
+ inst->precision = FLOAT16;
suffix++;
break;
case 'R':
- inst->Precision = FLOAT32;
+ inst->precision = FLOAT32;
suffix++;
break;
case 'X':
- inst->Precision = FIXED12;
+ inst->precision = FIXED12;
suffix++;
break;
default:
@@ -71,7 +71,7 @@ _mesa_parse_instruction_suffix(const struct asm_parser_state *state,
*/
if (state->option.NV_fragment) {
if (suffix[0] == 'C') {
- inst->CondUpdate = 1;
+ inst->cond_update = 1;
suffix++;
}
}
@@ -82,7 +82,7 @@ _mesa_parse_instruction_suffix(const struct asm_parser_state *state,
*/
if (state->mode == ARB_fragment) {
if (strcmp(suffix, "_SAT") == 0) {
- inst->SaturateMode = SATURATE_ZERO_ONE;
+ inst->saturate_mode = SATURATE_ZERO_ONE;
suffix += 4;
}
}