diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2010-07-26 13:47:54 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-08-01 20:07:09 -0400 |
commit | 363c6a16e30464fddcb8f82b7e8f44109729cc95 (patch) | |
tree | 3d8535b41e30cdae33a4b26bdc8b678c6c6b03c4 /drivers/gpu/drm/radeon/r600_blit_shaders.c | |
parent | eb544433c368ad95615af168bfb2fedfc5e9ddb1 (diff) |
drm/radeon: r6xx/r7xx move vport clipping to a single packet
Saves lots of dwords in blit emit
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/r600_blit_shaders.c')
-rw-r--r-- | drivers/gpu/drm/radeon/r600_blit_shaders.c | 310 |
1 files changed, 62 insertions, 248 deletions
diff --git a/drivers/gpu/drm/radeon/r600_blit_shaders.c b/drivers/gpu/drm/radeon/r600_blit_shaders.c index 3a775c198af..9a0553c69f1 100644 --- a/drivers/gpu/drm/radeon/r600_blit_shaders.c +++ b/drivers/gpu/drm/radeon/r600_blit_shaders.c | |||
@@ -167,163 +167,70 @@ const u32 r6xx_default_state[] = | |||
167 | 0x20002000, | 167 | 0x20002000, |
168 | 0x00000000, /* PA_SC_EDGERULE */ | 168 | 0x00000000, /* PA_SC_EDGERULE */ |
169 | 169 | ||
170 | 0xc0026900, | 170 | 0xc0406900, |
171 | 0x00000094, | 171 | 0x00000094, |
172 | 0x80000000, /* PA_SC_VPORT_SCISSOR_0_TL */ | 172 | 0x80000000, /* PA_SC_VPORT_SCISSOR_0_TL */ |
173 | 0x20002000, /* PA_SC_VPORT_SCISSOR_0_BR */ | 173 | 0x20002000, /* PA_SC_VPORT_SCISSOR_0_BR */ |
174 | |||
175 | 0xc0026900, | ||
176 | 0x000000b4, | ||
177 | 0x00000000, /* PA_SC_VPORT_ZMIN_0 */ | ||
178 | 0x3f800000, | ||
179 | |||
180 | 0xc0026900, | ||
181 | 0x00000096, | ||
182 | 0x80000000, /* PA_SC_VPORT_SCISSOR_1_TL */ | 174 | 0x80000000, /* PA_SC_VPORT_SCISSOR_1_TL */ |
183 | 0x20002000, | 175 | 0x20002000, |
184 | |||
185 | 0xc0026900, | ||
186 | 0x000000b6, | ||
187 | 0x00000000, | ||
188 | 0x3f800000, | ||
189 | |||
190 | 0xc0026900, | ||
191 | 0x00000098, | ||
192 | 0x80000000, | 176 | 0x80000000, |
193 | 0x20002000, | 177 | 0x20002000, |
194 | |||
195 | 0xc0026900, | ||
196 | 0x000000b8, | ||
197 | 0x00000000, | ||
198 | 0x3f800000, | ||
199 | |||
200 | 0xc0026900, | ||
201 | 0x0000009a, | ||
202 | 0x80000000, | 178 | 0x80000000, |
203 | 0x20002000, | 179 | 0x20002000, |
204 | |||
205 | 0xc0026900, | ||
206 | 0x000000ba, | ||
207 | 0x00000000, | ||
208 | 0x3f800000, | ||
209 | |||
210 | 0xc0026900, | ||
211 | 0x0000009c, | ||
212 | 0x80000000, | 180 | 0x80000000, |
213 | 0x20002000, | 181 | 0x20002000, |
214 | |||
215 | 0xc0026900, | ||
216 | 0x000000bc, | ||
217 | 0x00000000, | ||
218 | 0x3f800000, | ||
219 | |||
220 | 0xc0026900, | ||
221 | 0x0000009e, | ||
222 | 0x80000000, | 182 | 0x80000000, |
223 | 0x20002000, | 183 | 0x20002000, |
224 | |||
225 | 0xc0026900, | ||
226 | 0x000000be, | ||
227 | 0x00000000, | ||
228 | 0x3f800000, | ||
229 | |||
230 | 0xc0026900, | ||
231 | 0x000000a0, | ||
232 | 0x80000000, | 184 | 0x80000000, |
233 | 0x20002000, | 185 | 0x20002000, |
234 | |||
235 | 0xc0026900, | ||
236 | 0x000000c0, | ||
237 | 0x00000000, | ||
238 | 0x3f800000, | ||
239 | |||
240 | 0xc0026900, | ||
241 | 0x000000a2, | ||
242 | 0x80000000, | 186 | 0x80000000, |
243 | 0x20002000, | 187 | 0x20002000, |
244 | |||
245 | 0xc0026900, | ||
246 | 0x000000c2, | ||
247 | 0x00000000, | ||
248 | 0x3f800000, | ||
249 | |||
250 | 0xc0026900, | ||
251 | 0x000000a4, | ||
252 | 0x80000000, | 188 | 0x80000000, |
253 | 0x20002000, | 189 | 0x20002000, |
254 | |||
255 | 0xc0026900, | ||
256 | 0x000000c4, | ||
257 | 0x00000000, | ||
258 | 0x3f800000, | ||
259 | |||
260 | 0xc0026900, | ||
261 | 0x000000a6, | ||
262 | 0x80000000, | 190 | 0x80000000, |
263 | 0x20002000, | 191 | 0x20002000, |
264 | |||
265 | 0xc0026900, | ||
266 | 0x000000c6, | ||
267 | 0x00000000, | ||
268 | 0x3f800000, | ||
269 | |||
270 | 0xc0026900, | ||
271 | 0x000000a8, | ||
272 | 0x80000000, | 192 | 0x80000000, |
273 | 0x20002000, | 193 | 0x20002000, |
274 | |||
275 | 0xc0026900, | ||
276 | 0x000000c8, | ||
277 | 0x00000000, | ||
278 | 0x3f800000, | ||
279 | |||
280 | 0xc0026900, | ||
281 | 0x000000aa, | ||
282 | 0x80000000, | 194 | 0x80000000, |
283 | 0x20002000, | 195 | 0x20002000, |
284 | |||
285 | 0xc0026900, | ||
286 | 0x000000ca, | ||
287 | 0x00000000, | ||
288 | 0x3f800000, | ||
289 | |||
290 | 0xc0026900, | ||
291 | 0x000000ac, | ||
292 | 0x80000000, | 196 | 0x80000000, |
293 | 0x20002000, | 197 | 0x20002000, |
294 | |||
295 | 0xc0026900, | ||
296 | 0x000000cc, | ||
297 | 0x00000000, | ||
298 | 0x3f800000, | ||
299 | |||
300 | 0xc0026900, | ||
301 | 0x000000ae, | ||
302 | 0x80000000, | 198 | 0x80000000, |
303 | 0x20002000, | 199 | 0x20002000, |
304 | |||
305 | 0xc0026900, | ||
306 | 0x000000ce, | ||
307 | 0x00000000, | ||
308 | 0x3f800000, | ||
309 | |||
310 | 0xc0026900, | ||
311 | 0x000000b0, | ||
312 | 0x80000000, | 200 | 0x80000000, |
313 | 0x20002000, | 201 | 0x20002000, |
314 | |||
315 | 0xc0026900, | ||
316 | 0x000000d0, | ||
317 | 0x00000000, | ||
318 | 0x3f800000, | ||
319 | |||
320 | 0xc0026900, | ||
321 | 0x000000b2, | ||
322 | 0x80000000, | 202 | 0x80000000, |
323 | 0x20002000, | 203 | 0x20002000, |
324 | 204 | 0x00000000, /* PA_SC_VPORT_ZMIN_0 */ | |
325 | 0xc0026900, | 205 | 0x3f800000, |
326 | 0x000000d2, | 206 | 0x00000000, |
207 | 0x3f800000, | ||
208 | 0x00000000, | ||
209 | 0x3f800000, | ||
210 | 0x00000000, | ||
211 | 0x3f800000, | ||
212 | 0x00000000, | ||
213 | 0x3f800000, | ||
214 | 0x00000000, | ||
215 | 0x3f800000, | ||
216 | 0x00000000, | ||
217 | 0x3f800000, | ||
218 | 0x00000000, | ||
219 | 0x3f800000, | ||
220 | 0x00000000, | ||
221 | 0x3f800000, | ||
222 | 0x00000000, | ||
223 | 0x3f800000, | ||
224 | 0x00000000, | ||
225 | 0x3f800000, | ||
226 | 0x00000000, | ||
227 | 0x3f800000, | ||
228 | 0x00000000, | ||
229 | 0x3f800000, | ||
230 | 0x00000000, | ||
231 | 0x3f800000, | ||
232 | 0x00000000, | ||
233 | 0x3f800000, | ||
327 | 0x00000000, | 234 | 0x00000000, |
328 | 0x3f800000, | 235 | 0x3f800000, |
329 | 236 | ||
@@ -665,163 +572,70 @@ const u32 r7xx_default_state[] = | |||
665 | 0x20002000, | 572 | 0x20002000, |
666 | 0xaaaaaaaa, /* PA_SC_EDGERULE */ | 573 | 0xaaaaaaaa, /* PA_SC_EDGERULE */ |
667 | 574 | ||
668 | 0xc0026900, | 575 | 0xc0406900, |
669 | 0x00000094, | 576 | 0x00000094, |
670 | 0x80000000, /* PA_SC_VPORT_SCISSOR_0_TL */ | 577 | 0x80000000, /* PA_SC_VPORT_SCISSOR_0_TL */ |
671 | 0x20002000, /* PA_SC_VPORT_SCISSOR_0_BR */ | 578 | 0x20002000, /* PA_SC_VPORT_SCISSOR_0_BR */ |
672 | 579 | 0x80000000, /* PA_SC_VPORT_SCISSOR_1_TL */ | |
673 | 0xc0026900, | 580 | 0x20002000, |
674 | 0x000000b4, | ||
675 | 0x00000000, /* PA_SC_VPORT_ZMIN_0 */ | ||
676 | 0x3f800000, | ||
677 | |||
678 | 0xc0026900, | ||
679 | 0x00000096, | ||
680 | 0x80000000, | 581 | 0x80000000, |
681 | 0x20002000, | 582 | 0x20002000, |
682 | |||
683 | 0xc0026900, | ||
684 | 0x000000b6, | ||
685 | 0x00000000, | ||
686 | 0x3f800000, | ||
687 | |||
688 | 0xc0026900, | ||
689 | 0x00000098, | ||
690 | 0x80000000, | 583 | 0x80000000, |
691 | 0x20002000, | 584 | 0x20002000, |
692 | |||
693 | 0xc0026900, | ||
694 | 0x000000b8, | ||
695 | 0x00000000, | ||
696 | 0x3f800000, | ||
697 | |||
698 | 0xc0016900, | ||
699 | 0x0000009a, | ||
700 | 0x80000000, | 585 | 0x80000000, |
701 | 0x20002000, | 586 | 0x20002000, |
702 | |||
703 | 0xc0026900, | ||
704 | 0x000000ba, | ||
705 | 0x00000000, | ||
706 | 0x3f800000, | ||
707 | |||
708 | 0xc0026900, | ||
709 | 0x0000009c, | ||
710 | 0x80000000, | 587 | 0x80000000, |
711 | 0x20002000, | 588 | 0x20002000, |
712 | |||
713 | 0xc0026900, | ||
714 | 0x000000bc, | ||
715 | 0x00000000, | ||
716 | 0x3f800000, | ||
717 | |||
718 | 0xc0026900, | ||
719 | 0x0000009e, | ||
720 | 0x80000000, | 589 | 0x80000000, |
721 | 0x20002000, | 590 | 0x20002000, |
722 | |||
723 | 0xc0026900, | ||
724 | 0x000000be, | ||
725 | 0x00000000, | ||
726 | 0x3f800000, | ||
727 | |||
728 | 0xc0026900, | ||
729 | 0x000000a0, | ||
730 | 0x80000000, | 591 | 0x80000000, |
731 | 0x20002000, | 592 | 0x20002000, |
732 | |||
733 | 0xc0026900, | ||
734 | 0x000000c0, | ||
735 | 0x00000000, | ||
736 | 0x3f800000, | ||
737 | |||
738 | 0xc0026900, | ||
739 | 0x000000a2, | ||
740 | 0x80000000, | 593 | 0x80000000, |
741 | 0x20002000, | 594 | 0x20002000, |
742 | |||
743 | 0xc0026900, | ||
744 | 0x000000c2, | ||
745 | 0x00000000, | ||
746 | 0x3f800000, | ||
747 | |||
748 | 0xc0026900, | ||
749 | 0x000000a4, | ||
750 | 0x80000000, | 595 | 0x80000000, |
751 | 0x20002000, | 596 | 0x20002000, |
752 | |||
753 | 0xc0026900, | ||
754 | 0x000000c4, | ||
755 | 0x00000000, | ||
756 | 0x3f800000, | ||
757 | |||
758 | 0xc0026900, | ||
759 | 0x000000a6, | ||
760 | 0x80000000, | 597 | 0x80000000, |
761 | 0x20002000, | 598 | 0x20002000, |
762 | |||
763 | 0xc0026900, | ||
764 | 0x000000c6, | ||
765 | 0x00000000, | ||
766 | 0x3f800000, | ||
767 | |||
768 | 0xc0026900, | ||
769 | 0x000000a8, | ||
770 | 0x80000000, | 599 | 0x80000000, |
771 | 0x20002000, | 600 | 0x20002000, |
772 | |||
773 | 0xc0026900, | ||
774 | 0x000000c8, | ||
775 | 0x00000000, | ||
776 | 0x3f800000, | ||
777 | |||
778 | 0xc0026900, | ||
779 | 0x000000aa, | ||
780 | 0x80000000, | 601 | 0x80000000, |
781 | 0x20002000, | 602 | 0x20002000, |
782 | |||
783 | 0xc0026900, | ||
784 | 0x000000ca, | ||
785 | 0x00000000, | ||
786 | 0x3f800000, | ||
787 | |||
788 | 0xc0026900, | ||
789 | 0x000000ac, | ||
790 | 0x80000000, | 603 | 0x80000000, |
791 | 0x20002000, | 604 | 0x20002000, |
792 | |||
793 | 0xc0026900, | ||
794 | 0x000000cc, | ||
795 | 0x00000000, | ||
796 | 0x3f800000, | ||
797 | |||
798 | 0xc0026900, | ||
799 | 0x000000ae, | ||
800 | 0x80000000, | 605 | 0x80000000, |
801 | 0x20002000, | 606 | 0x20002000, |
802 | |||
803 | 0xc0026900, | ||
804 | 0x000000ce, | ||
805 | 0x00000000, | ||
806 | 0x3f800000, | ||
807 | |||
808 | 0xc0026900, | ||
809 | 0x000000b0, | ||
810 | 0x80000000, | 607 | 0x80000000, |
811 | 0x20002000, | 608 | 0x20002000, |
812 | 609 | 0x00000000, /* PA_SC_VPORT_ZMIN_0 */ | |
813 | 0xc0026900, | 610 | 0x3f800000, |
814 | 0x000000d0, | 611 | 0x00000000, |
612 | 0x3f800000, | ||
613 | 0x00000000, | ||
614 | 0x3f800000, | ||
615 | 0x00000000, | ||
616 | 0x3f800000, | ||
617 | 0x00000000, | ||
618 | 0x3f800000, | ||
619 | 0x00000000, | ||
620 | 0x3f800000, | ||
621 | 0x00000000, | ||
622 | 0x3f800000, | ||
623 | 0x00000000, | ||
624 | 0x3f800000, | ||
625 | 0x00000000, | ||
626 | 0x3f800000, | ||
627 | 0x00000000, | ||
628 | 0x3f800000, | ||
629 | 0x00000000, | ||
630 | 0x3f800000, | ||
631 | 0x00000000, | ||
632 | 0x3f800000, | ||
633 | 0x00000000, | ||
634 | 0x3f800000, | ||
635 | 0x00000000, | ||
636 | 0x3f800000, | ||
815 | 0x00000000, | 637 | 0x00000000, |
816 | 0x3f800000, | 638 | 0x3f800000, |
817 | |||
818 | 0xc0026900, | ||
819 | 0x000000b2, | ||
820 | 0x80000000, | ||
821 | 0x20002000, | ||
822 | |||
823 | 0xc0026900, | ||
824 | 0x000000d2, | ||
825 | 0x00000000, | 639 | 0x00000000, |
826 | 0x3f800000, | 640 | 0x3f800000, |
827 | 641 | ||