case 0xc0:
case 0xd0:
case 0xe0:
+ case 0xf0:
+ case 0x100:
ret = doCoalesce(insns, JOIN_MASK_UNION);
break;
default:
texConstraintNVC0(tex);
break;
case 0xe0:
- case NVISA_GK110_CHIPSET:
+ case 0xf0:
+ case 0x100:
texConstraintNVE0(tex);
break;
default:
Target *Target::create(unsigned int chipset)
{
- switch (chipset & 0xf0) {
+ switch (chipset & ~0xf) {
case 0xc0:
case 0xd0:
case 0xe0:
- case NVISA_GK110_CHIPSET:
+ case 0xf0:
+ case 0x100:
return getTargetNVC0(chipset);
case 0x50:
case 0x80:
void
TargetNVC0::getBuiltinCode(const uint32_t **code, uint32_t *size) const
{
- switch (chipset & 0xf0) {
+ switch (chipset & ~0xf) {
case 0xe0:
*code = (const uint32_t *)&nve4_builtin_code[0];
*size = sizeof(nve4_builtin_code);
break;
case 0xf0:
+ case 0x100:
*code = (const uint32_t *)&nvf0_builtin_code[0];
*size = sizeof(nvf0_builtin_code);
break;
{
assert(builtin < NVC0_BUILTIN_COUNT);
- switch (chipset & 0xf0) {
- case 0xe0: return nve4_builtin_offsets[builtin];
- case 0xf0: return nvf0_builtin_offsets[builtin];
+ switch (chipset & ~0xf) {
+ case 0xe0:
+ return nve4_builtin_offsets[builtin];
+ case 0xf0:
+ case 0x100:
+ return nvf0_builtin_offsets[builtin];
default:
return nvc0_builtin_offsets[builtin];
}
int ret;
int i;
- switch (dev->chipset & 0xf0) {
+ switch (dev->chipset & ~0xf) {
case 0xc0:
if (dev->chipset == 0xc8)
obj_class = NVC8_COMPUTE_CLASS;
{
screen->base.base.get_compute_param = nvc0_screen_get_compute_param;
- switch (screen->base.device->chipset & 0xf0) {
+ switch (screen->base.device->chipset & ~0xf) {
case 0xc0:
case 0xd0:
/* Using COMPUTE has weird effects on 3D state, we need to
return 0;
case 0xe0:
case 0xf0:
+ case 0x100:
return nve4_screen_compute_setup(screen, screen->base.pushbuf);
default:
return -1;
case 0xd0:
case 0xe0:
case 0xf0:
+ case 0x100:
break;
default:
return NULL;
screen->base.fence.emit = nvc0_screen_fence_emit;
screen->base.fence.update = nvc0_screen_fence_update;
- switch (dev->chipset & 0xf0) {
+ switch (dev->chipset & ~0xf) {
+ case 0x100:
case 0xf0:
obj_class = NVF0_P2MF_CLASS;
break;
PUSH_DATAh(push, screen->fence.bo->offset + 16);
PUSH_DATA (push, screen->fence.bo->offset + 16);
- switch (dev->chipset & 0xf0) {
+ switch (dev->chipset & ~0xf) {
+ case 0x100:
case 0xf0:
obj_class = NVF0_3D_CLASS;
break;
int ret;
uint32_t obj_class;
- switch (dev->chipset & 0xf0) {
+ switch (dev->chipset & ~0xf) {
+ case 0x100:
case 0xf0:
obj_class = NVF0_COMPUTE_CLASS; /* GK110 */
break;
if (ret)
return NULL;
- switch (dev->chipset & 0xf0) {
+ switch (dev->chipset & ~0xf) {
case 0x30:
case 0x40:
case 0x60:
case 0xd0:
case 0xe0:
case 0xf0:
+ case 0x100:
init = nvc0_screen_create;
break;
default: