search for: parse_instruct

Displaying 2 results from an estimated 2 matches for "parse_instruct".

2017 Jun 11
0
[RFC 5/9] tgsi/text: parse _PRECISE modifier
...r = cur; *saturate = 1; - return TRUE; } + + if (str_match_nocase_whole(&cur, "_PRECISE")) { + *pcur = cur; + *precise = 1; + } + + if (*precise || *saturate) + return TRUE; } return FALSE; @@ -1029,6 +1038,7 @@ parse_instruction( { uint i; uint saturate = 0; + uint precise = 0; const struct tgsi_opcode_info *info; struct tgsi_full_instruction inst; const char *cur; @@ -1043,7 +1053,7 @@ parse_instruction( cur = ctx->cur; info = tgsi_get_opcode_info( i ); - if (match_inst(&a...
2017 Jun 11
14
[RFC 0/9] Add precise/invariant semantics to TGSI
Running Tomb Raider on Nouveau I found some flicker caused by ignoring precise modifiers on variables inside Nouveau. This series add precise/invariant handling to TGSI, which can be then used by drivers to disable certain unsafe optimisations which may otherwise alter calculations, which depend on having the same result across shaders. This series fixes this bug in Tomb Raider and one CTS test