radeonsi: set the max UBO size same as the max SSBO size

Reviewed-by: Mihai Preda <mhpreda@gmail.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16901>
This commit is contained in:
Marek Olšák 2022-06-05 21:13:20 -04:00 committed by Marge Bot
parent b750844319
commit b7cb4d4f6f

View file

@ -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.