r300.c (dcd6dfcfe959bade75fbf49499775985d2cac5d5) r300.c (46c64d4bfa01cda7d58c514164f8b127ab6741b7)
1/*
2 * Copyright 2008 Advanced Micro Devices, Inc.
3 * Copyright 2008 Red Hat Inc.
4 * Copyright 2009 Jerome Glisse.
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation

--- 978 unchanged lines hidden (view full) ---

987 if (r) {
988 DRM_ERROR("No reloc for ib[%d]=0x%04X\n",
989 idx, reg);
990 r100_cs_dump_packet(p, pkt);
991 return r;
992 }
993 ib[idx] = idx_value + ((u32)reloc->lobj.gpu_offset);
994 break;
1/*
2 * Copyright 2008 Advanced Micro Devices, Inc.
3 * Copyright 2008 Red Hat Inc.
4 * Copyright 2009 Jerome Glisse.
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation

--- 978 unchanged lines hidden (view full) ---

987 if (r) {
988 DRM_ERROR("No reloc for ib[%d]=0x%04X\n",
989 idx, reg);
990 r100_cs_dump_packet(p, pkt);
991 return r;
992 }
993 ib[idx] = idx_value + ((u32)reloc->lobj.gpu_offset);
994 break;
995 case 0x4e0c:
996 /* RB3D_COLOR_CHANNEL_MASK */
997 track->color_channel_mask = idx_value;
998 break;
999 case 0x4d1c:
1000 /* ZB_BW_CNTL */
1001 track->fastfill = !!(idx_value & (1 << 2));
1002 break;
1003 case 0x4e04:
1004 /* RB3D_BLENDCNTL */
1005 track->blend_read_enable = !!(idx_value & (1 << 2));
1006 break;
995 case 0x4be8:
996 /* valid register only on RV530 */
997 if (p->rdev->family == CHIP_RV530)
998 break;
999 /* fallthrough do not move */
1000 default:
1001 printk(KERN_ERR "Forbidden register 0x%04X in cs at %d\n",
1002 reg, idx);

--- 386 unchanged lines hidden ---
1007 case 0x4be8:
1008 /* valid register only on RV530 */
1009 if (p->rdev->family == CHIP_RV530)
1010 break;
1011 /* fallthrough do not move */
1012 default:
1013 printk(KERN_ERR "Forbidden register 0x%04X in cs at %d\n",
1014 reg, idx);

--- 386 unchanged lines hidden ---