Mesa (main): radeonsi: set the max UBO size same as the max SSBO size
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jun 8 10:54:35 UTC 2022
Module: Mesa
Branch: main
Commit: b7cb4d4f6f91a74ba087124c6688d8e6217d1e22
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b7cb4d4f6f91a74ba087124c6688d8e6217d1e22
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sun Jun 5 21:13:20 2022 -0400
radeonsi: set the max UBO size same as the max SSBO size
Reviewed-by: Mihai Preda <mhpreda at gmail.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16901>
---
src/gallium/drivers/radeonsi/si_get.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gallium/drivers/radeonsi/si_get.c b/src/gallium/drivers/radeonsi/si_get.c
index 0efb817191c..266e13a3eaa 100644
--- a/src/gallium/drivers/radeonsi/si_get.c
+++ b/src/gallium/drivers/radeonsi/si_get.c
@@ -252,6 +252,7 @@ static int si_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
return max_texels;
}
+ case PIPE_CAP_MAX_CONSTANT_BUFFER_SIZE_UINT:
case PIPE_CAP_MAX_SHADER_BUFFER_SIZE_UINT: {
/* Return 1/4th of the heap size as the maximum because the max size is not practically
* allocatable. Also, this can only return UINT32_MAX at most.
More information about the mesa-commit
mailing list