nvk: Drop the sparse alignment back down to 4096

nouveau uses the OS page size which is almost always 4096.  The next
patch will make this properly queried but this version is back-portable.

Fixes: 58181b7bbc ("nvk: Bump the sparse alignment requirement on buffers to 64K")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30138>
This commit is contained in:
Faith Ekstrand
2024-07-11 16:03:56 -05:00
committed by Marge Bot
parent bccb9fe091
commit 68c06558be
2 changed files with 1 additions and 3 deletions

View File

@@ -701,8 +701,6 @@ spec@arb_shader_texture_lod@execution@arb_shader_texture_lod-texgrad,Fail
spec@arb_shader_texture_lod@execution@arb_shader_texture_lod-texgradcube,Fail
spec@arb_shading_language_packing@execution@built-in-functions@fs-packhalf2x16,Fail
spec@arb_shading_language_packing@execution@built-in-functions@vs-packhalf2x16,Fail
spec@arb_sparse_buffer@basic,Crash
spec@arb_sparse_buffer@buffer-data,Crash
spec@arb_texture_buffer_object@formats (fs- arb),Crash
spec@arb_texture_buffer_object@formats (fs- arb)@GL_ALPHA16,Fail
spec@arb_texture_buffer_object@formats (fs- arb)@GL_ALPHA16F_ARB,Fail

View File

@@ -35,7 +35,7 @@
/* Max size of a bound cbuf */
#define NVK_MAX_CBUF_SIZE (1u << 16)
#define NVK_SPARSE_BIND_ALIGN_B (1u << 16)
#define NVK_SPARSE_BIND_ALIGN_B (1u << 12)
struct nvk_addr_range {
uint64_t addr;