diff options
author | Marek Olšák <marek.olsak@amd.com> | 2023-01-24 19:15:35 -0500 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-02-24 21:27:24 +0000 |
commit | df6380ddc9c88b37355cb85d2f37697192354aaa (patch) | |
tree | 4406d8984f3b4c26b26830199027be8ddbc31f97 /include | |
parent | 39fefeabee69b65f1f696b06c14ba8e002429df0 (diff) | |
download | mesa-df6380ddc9c88b37355cb85d2f37697192354aaa.tar.gz |
amd: implement conformant TRUNC_COORD behavior for gfx11
For testing, the conformant behavior can be enabled by setting
conformant_trunc_coord to true manually and running this to enable
the conformant behavior in hw:
umr -w *.*.regTA_CNTL2 0x40000
The layer index rounding and TRUNC_COORD resetting workarounds can disabled
in the shader compiler.
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21525>
Diffstat (limited to 'include')
-rw-r--r-- | include/drm-uapi/amdgpu_drm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm-uapi/amdgpu_drm.h b/include/drm-uapi/amdgpu_drm.h index 973af6d0662..45dc7e00c89 100644 --- a/include/drm-uapi/amdgpu_drm.h +++ b/include/drm-uapi/amdgpu_drm.h @@ -715,6 +715,7 @@ struct drm_amdgpu_cs_chunk_data { #define AMDGPU_IDS_FLAGS_FUSION 0x1 #define AMDGPU_IDS_FLAGS_PREEMPTION 0x2 #define AMDGPU_IDS_FLAGS_TMZ 0x4 +#define AMDGPU_IDS_FLAGS_CONFORMANT_TRUNC_COORD 0x8 /* indicate if acceleration can be working */ #define AMDGPU_INFO_ACCEL_WORKING 0x00 |