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:
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;
int i;
boolean emit_common_func = cso->rt[0].blend_enable;
- const uint32_t chipset = nv50_context(pipe)->screen->base.device->chipset;
-
- if (chipset >= 0xa3) {
+ if (nv50_context(pipe)->screen->tesla->grclass >= NVA3_3D) {
SB_BEGIN_3D(so, BLEND_INDEPENDENT, 1);
SB_DATA (so, cso->independent_blend_enable);
}
emit_common_func = TRUE;
}
- if (chipset >= 0xa3) {
+ if (nv50_context(pipe)->screen->tesla->grclass >= NVA3_3D) {
emit_common_func = FALSE;
for (i = 0; i < 8; ++i) {