r300: skip sin/cos input range transformation for nine and ntt
Signed-off-by: Pavel Ondračka <pavel.ondracka@gmail.com> Reviewed-by: Filip Gawin <filip@gawin.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18933>
This commit is contained in:

committed by
Marge Bot

parent
0b21d3ae6c
commit
d8f59b14d0
@@ -1959,9 +1959,18 @@ static void* r300_create_vs_state(struct pipe_context* pipe,
|
||||
if (r300->screen->caps.has_tcl) {
|
||||
if (r300->screen->caps.is_r500) {
|
||||
ntt_options = &hwtcl_r500_options;
|
||||
NIR_PASS_V(shader->ir.nir, r300_transform_vs_trig_input);
|
||||
|
||||
/* Only nine should set both NTT shader name and
|
||||
* use_legacy_math_rules and D3D9 already mandates
|
||||
* the proper range for the trigonometric inputs.
|
||||
*/
|
||||
struct shader_info *info = &(((struct nir_shader *)(shader->ir.nir))->info);
|
||||
if (!info->use_legacy_math_rules ||
|
||||
!(info->name && !strcmp("TTN", info->name))) {
|
||||
NIR_PASS_V(shader->ir.nir, r300_transform_vs_trig_input);
|
||||
}
|
||||
}
|
||||
else
|
||||
else
|
||||
ntt_options = &hwtcl_r300_options;
|
||||
} else {
|
||||
ntt_options = &swtcl_options;
|
||||
|
Reference in New Issue
Block a user