mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-30 00:40:25 +01:00
gallium: fix MaxTextureCoordUnits init
Fixes Cell regression.
This commit is contained in:
parent
9832f92850
commit
6cbaa2226f
1 changed files with 3 additions and 2 deletions
|
|
@ -92,9 +92,10 @@ void st_init_limits(struct st_context *st)
|
|||
= _min(screen->get_param(screen, PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS),
|
||||
MAX_VERTEX_TEXTURE_IMAGE_UNITS);
|
||||
|
||||
c->MaxTextureCoordUnits = MAX_TEXTURE_COORD_UNITS;
|
||||
c->MaxTextureCoordUnits
|
||||
= _min(c->MaxTextureImageUnits, MAX_TEXTURE_COORD_UNITS);
|
||||
|
||||
c->MaxTextureUnits = MIN2(c->MaxTextureImageUnits, c->MaxTextureCoordUnits);
|
||||
c->MaxTextureUnits = _min(c->MaxTextureImageUnits, c->MaxTextureCoordUnits);
|
||||
|
||||
c->MaxDrawBuffers
|
||||
= _clamp(screen->get_param(screen, PIPE_CAP_MAX_RENDER_TARGETS),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue