upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/tls_host.cpp
diff options
context:
space:
mode:
authorShuvam Pandey <shuvampandey1@gmail.com>2026-11-22 04:15:43 +0545
committerShuvam Pandey <shuvampandey1@gmail.com>2026-11-22 04:15:43 +0545
commitb9552cd924a4527d9bee41a04456f6e285050a79 (patch)
tree94a59177d16e9bffcd6069334a594c1279781005 /runtime/src/tls_host.cpp
parent36ace7135e897c228eede5d1d8c28e972285cb14 (diff)
Translator: convert cube sample coordinates for the 2D-array view
The hardware takes a cube sample's s and t in [1, 2] and its third coordinate as 8 * slice + face (Mesa ac_nir_lower_tex_coords.c, LLPC ImageBuilder.cpp). Samples and gathers passed them unchanged to the 6-layer 2D-array view; they now use s - 1, t - 1 and layer 6 * slice + face. ps_cube_sample checks every pixel on a GPU (vk_texture_test cube), and test_cube_sample checks the coordinates without one.
Diffstat (limited to 'runtime/src/tls_host.cpp')
0 files changed, 0 insertions, 0 deletions