mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-03 06:30:24 +01:00
nir: Initialize evaluate_cube_face_index_amd dst.x.
Fix defect reported by Coverity Scan. Uninitialized scalar variable (UNINIT) uninit_use: Using uninitialized value dst.x. Fixes:a1a2a8dfda("nir: add AMD_gcn_shader extended instructions") Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12290> (cherry picked from commit8d679f4f4e)
This commit is contained in:
parent
8c26804eea
commit
ac87f88cff
2 changed files with 2 additions and 1 deletions
|
|
@ -139,7 +139,7 @@
|
|||
"description": "nir: Initialize evaluate_cube_face_index_amd dst.x.",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "a1a2a8dfda7b9cac7e36bf8853d984a6009fc27e"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -537,6 +537,7 @@ dst.y = dst.y * (1.0f / ma) + 0.5f;
|
|||
""")
|
||||
|
||||
unop_horiz("cube_face_index_amd", 1, tfloat32, 3, tfloat32, """
|
||||
dst.x = 0.0;
|
||||
float absX = fabsf(src0.x);
|
||||
float absY = fabsf(src0.y);
|
||||
float absZ = fabsf(src0.z);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue