freedreno: Fix shader-clock when kernel exposes UCHE_TRAP_BASE

Fixes: 4b1b4ee10c ("freedreno,tu: Read and pass to compiler uche_trap_base)
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35010>
This commit is contained in:
Rob Clark
2025-05-15 14:29:53 -07:00
committed by Marge Bot
parent 089e2cb6f9
commit 65e18a8494
2 changed files with 4 additions and 5 deletions
@@ -221,10 +221,6 @@ spec@arb_gpu_shader_fp64@execution@built-in-functions@fs-inverse-dmat4,Fail
spec@arb_gpu_shader_fp64@uniform_buffers@fs-ubo-load.indirect.3,Fail
spec@glsl-4.00@execution@built-in-functions@fs-op-div-double-dmat4,Fail
# Regression from https://gitlab.freedesktop.org/mesa/mesa/-/compare/fc7badeac09f88ba4fe204cba79cde5bee64c986...384bf8e58ed5e149e157c91bc934482fbb0151c8
spec@arb_shader_clock@execution@clock,Fail
spec@arb_shader_clock@execution@clock2x32,Fail
# uprev Piglit in Mesa
spec@glsl-1.30@execution@fs-uint-to-float-of-extract-int16,Fail
spec@glsl-1.30@execution@fs-uint-to-float-of-extract-int8,Fail
@@ -918,8 +918,11 @@ fd_screen_create(int fd,
if (fd_device_version(dev) >= FD_VERSION_ROBUSTNESS)
screen->has_robustness = true;
if (fd_pipe_get_param(screen->pipe, FD_UCHE_TRAP_BASE, &val))
if (fd_pipe_get_param(screen->pipe, FD_UCHE_TRAP_BASE, &val)) {
screen->uche_trap_base = screen->gen >= 6 ? 0x1fffffffff000ull : 0ull;
} else {
screen->uche_trap_base = val;
}
screen->has_syncobj = fd_has_syncobj(screen->dev);