diff options
author | Christoph Bumiller <[email protected]> | 2011-03-03 12:31:35 +0100 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2011-03-03 12:32:40 +0100 |
commit | 3bf92a281bdc6ebf2ec5975729d02bd9062e11f5 (patch) | |
tree | 08448d1bd8f102f5b895d367ff35dec8a62554cf /src/gallium/drivers/nv50/nv50_screen.c | |
parent | 7048ad62f89289c9e642203c009dca38ce8753f8 (diff) |
nv50: check grclass instead of chipset for 3D caps
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_screen.c')
-rw-r--r-- | src/gallium/drivers/nv50/nv50_screen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/nv50/nv50_screen.c b/src/gallium/drivers/nv50/nv50_screen.c index 3ccaff2838a..ae0365eb5c5 100644 --- a/src/gallium/drivers/nv50/nv50_screen.c +++ b/src/gallium/drivers/nv50/nv50_screen.c @@ -59,7 +59,7 @@ nv50_screen_is_format_supported(struct pipe_screen *pscreen, switch (format) { case PIPE_FORMAT_Z16_UNORM: - if ((nouveau_screen(pscreen)->device->chipset & 0xf0) != 0xa0) + if (nv50_screen(pscreen)->tesla->grclass < NVA0_3D) return FALSE; break; default: @@ -117,7 +117,7 @@ nv50_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_INDEP_BLEND_ENABLE: return 1; case PIPE_CAP_INDEP_BLEND_FUNC: - return nv50_screen(pscreen)->base.device->chipset >= 0xa3; + return nv50_screen(pscreen)->tesla->grclass >= NVA3_3D; case PIPE_CAP_TGSI_FS_COORD_ORIGIN_UPPER_LEFT: case PIPE_CAP_TGSI_FS_COORD_PIXEL_CENTER_HALF_INTEGER: return 1; |