mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
cube_face_coord: Use fabsf instead of fabs since we know it's floats
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3933>
This commit is contained in:
parent
a70a605ad6
commit
6db7467b59
1 changed files with 3 additions and 3 deletions
|
|
@ -467,9 +467,9 @@ for i in range(1, 5):
|
|||
# AMD_gcn_shader extended instructions
|
||||
unop_horiz("cube_face_coord", 2, tfloat32, 3, tfloat32, """
|
||||
dst.x = dst.y = 0.0;
|
||||
float absX = fabs(src0.x);
|
||||
float absY = fabs(src0.y);
|
||||
float absZ = fabs(src0.z);
|
||||
float absX = fabsf(src0.x);
|
||||
float absY = fabsf(src0.y);
|
||||
float absZ = fabsf(src0.z);
|
||||
|
||||
float ma = 0.0;
|
||||
if (absX >= absY && absX >= absZ) { ma = 2 * src0.x; }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue