mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 17:58:26 +02:00
NV fp: Parse 'OPTION NV_fragment_program' in ARB assembly shaders
This commit is contained in:
parent
efff7aa980
commit
dc8ec05ace
2 changed files with 12 additions and 0 deletions
|
|
@ -102,6 +102,17 @@ _mesa_ARBfp_parse_option(struct asm_parser_state *state, const char *option)
|
|||
return 1;
|
||||
}
|
||||
}
|
||||
} else if (strncmp(option, "NV_fragment_program", 19) == 0) {
|
||||
option += 19;
|
||||
|
||||
/* Other NV_fragment_program strings may be supported later.
|
||||
*/
|
||||
if (option[0] == '\0') {
|
||||
if (state->ctx->Extensions.NV_fragment_program_option) {
|
||||
state->option.NV_fragment = 1;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
} else if (strncmp(option, "MESA_", 5) == 0) {
|
||||
option += 5;
|
||||
|
||||
|
|
|
|||
|
|
@ -202,6 +202,7 @@ struct asm_parser_state {
|
|||
unsigned Shadow:1;
|
||||
unsigned TexRect:1;
|
||||
unsigned TexArray:1;
|
||||
unsigned NV_fragment:1;
|
||||
} option;
|
||||
|
||||
struct {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue