mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
r300g: consolidate params
This commit is contained in:
parent
e78648db0a
commit
ddfc4e31ad
1 changed files with 6 additions and 3 deletions
|
|
@ -83,6 +83,7 @@ static int r300_get_param(struct pipe_screen* pscreen, int param)
|
||||||
|
|
||||||
switch (param) {
|
switch (param) {
|
||||||
case PIPE_CAP_MAX_TEXTURE_IMAGE_UNITS:
|
case PIPE_CAP_MAX_TEXTURE_IMAGE_UNITS:
|
||||||
|
case PIPE_CAP_MAX_COMBINED_SAMPLERS:
|
||||||
/* XXX I'm told this goes up to 16 */
|
/* XXX I'm told this goes up to 16 */
|
||||||
return 8;
|
return 8;
|
||||||
case PIPE_CAP_NPOT_TEXTURES:
|
case PIPE_CAP_NPOT_TEXTURES:
|
||||||
|
|
@ -143,9 +144,11 @@ static int r300_get_param(struct pipe_screen* pscreen, int param)
|
||||||
case PIPE_CAP_BLEND_EQUATION_SEPARATE:
|
case PIPE_CAP_BLEND_EQUATION_SEPARATE:
|
||||||
return 1;
|
return 1;
|
||||||
case PIPE_CAP_SM3:
|
case PIPE_CAP_SM3:
|
||||||
return 1;
|
if (r300screen->caps->is_r500) {
|
||||||
case PIPE_CAP_MAX_COMBINED_SAMPLERS:
|
return 1;
|
||||||
return 8;
|
} else {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
debug_printf("r300: Implementation error: Bad param %d\n",
|
debug_printf("r300: Implementation error: Bad param %d\n",
|
||||||
param);
|
param);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue