mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
panfrost: Lower max inputs again
Due to Midgard ABI silliness. We could fix this properly but I'm not
aware of any app that needs more than 16, so let's just revert to the
behaviour matching the DDK.
Fixes: fdbf8c96fe ("panfrost: Use natural shader limits")
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10938>
This commit is contained in:
parent
7b9d8d1936
commit
7bc3730b3f
1 changed files with 2 additions and 3 deletions
|
|
@ -347,9 +347,8 @@ panfrost_get_shader_param(struct pipe_screen *screen,
|
|||
return 1024; /* arbitrary */
|
||||
|
||||
case PIPE_SHADER_CAP_MAX_INPUTS:
|
||||
/* Hardware limit is 4095 but we have driver internal inputs */
|
||||
STATIC_ASSERT(PIPE_MAX_ATTRIBS < (0x1000 - 16));
|
||||
return PIPE_MAX_ATTRIBS;
|
||||
/* Used as ABI on Midgard */
|
||||
return 16;
|
||||
|
||||
case PIPE_SHADER_CAP_MAX_OUTPUTS:
|
||||
return shader == PIPE_SHADER_FRAGMENT ? 8 : PIPE_MAX_ATTRIBS;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue