mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
radeonsi: increase the maximum UBO size to 2 GB
Same as the closed driver. This causes a failure in GL45-CTS.compute_shader.max, which has a trivial bug. Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
This commit is contained in:
parent
5693ca865d
commit
9176703788
1 changed files with 1 additions and 1 deletions
|
|
@ -397,7 +397,7 @@ static int si_get_shader_param(struct pipe_screen* pscreen,
|
|||
case PIPE_SHADER_CAP_MAX_TEMPS:
|
||||
return 256; /* Max native temporaries. */
|
||||
case PIPE_SHADER_CAP_MAX_CONST_BUFFER_SIZE:
|
||||
return 4096 * sizeof(float[4]); /* actually only memory limits this */
|
||||
return MIN2(sscreen->info.max_alloc_size, INT_MAX - 3); /* aligned to 4 */
|
||||
case PIPE_SHADER_CAP_MAX_CONST_BUFFERS:
|
||||
return SI_NUM_CONST_BUFFERS;
|
||||
case PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue