blob: 78011d73fa9f5afd87e48da808c3d726416f7871 [file] [log] [blame]
Mika Kuoppala9d0a6fa2014-05-14 17:02:16 +03001#include "intel_renderstate.h"
2
3static const u32 gen8_null_state_relocs[] = {
Armin Reese655b5392014-10-23 08:34:27 -07004 0x00000798,
5 0x000007a4,
6 0x000007ac,
7 0x000007bc,
Chris Wilson1ce826d2014-06-10 11:23:33 +01008 -1,
Mika Kuoppala9d0a6fa2014-05-14 17:02:16 +03009};
10
11static const u32 gen8_null_state_batch[] = {
Armin Reese655b5392014-10-23 08:34:27 -070012 0x7a000004,
13 0x01000000,
14 0x00000000,
15 0x00000000,
16 0x00000000,
17 0x00000000,
Mika Kuoppala229b0482014-05-14 17:02:17 +030018 0x69040000,
Armin Reese655b5392014-10-23 08:34:27 -070019 0x78140000,
20 0x04000000,
21 0x7820000a,
22 0x00000000,
23 0x00000000,
24 0x80000000,
25 0x00000000,
26 0x00000000,
27 0x00000000,
28 0x00000000,
29 0x00000000,
30 0x00000000,
31 0x00000000,
32 0x00000000,
33 0x78130002,
34 0x00000000,
35 0x00000000,
36 0x02001808,
37 0x781f0002,
38 0x00000000,
39 0x00000000,
40 0x00000000,
41 0x78510009,
42 0x00000000,
43 0x00000000,
44 0x00000000,
45 0x00000000,
46 0x00000000,
47 0x00000000,
48 0x00000000,
49 0x00000000,
50 0x00000000,
51 0x00000000,
52 0x78100007,
53 0x00000000,
54 0x00000000,
55 0x00010000,
56 0x00000000,
57 0x00000000,
58 0x00000000,
59 0x00000000,
60 0x00000000,
61 0x781b0007,
62 0x00000000,
63 0x00000000,
64 0x00000000,
65 0x00000000,
66 0x00000000,
67 0x00000000,
68 0x00000800,
69 0x00000000,
70 0x78110008,
71 0x00000000,
72 0x00000000,
73 0x00000000,
74 0x00000000,
75 0x00000000,
76 0x00000000,
77 0x00000000,
78 0x00000000,
79 0x00000000,
80 0x781e0003,
81 0x00000000,
82 0x00000000,
83 0x00000000,
84 0x00000000,
85 0x781d0007,
86 0x00000000,
87 0x00000000,
88 0x00000000,
89 0x00000000,
90 0x00000000,
91 0x00000000,
92 0x00000000,
93 0x00000000,
94 0x78120002,
95 0x00000000,
96 0x00000000,
97 0x00000000,
98 0x78500003,
99 0x00000000,
100 0x00000000,
101 0x00000000,
102 0x00000000,
103 0x781c0002,
104 0x00000000,
105 0x00000000,
106 0x00000000,
107 0x780c0000,
108 0x00000000,
109 0x78520003,
110 0x00000000,
111 0x00000000,
112 0x00000000,
113 0x00000000,
114 0x78300000,
115 0x08010040,
116 0x78310000,
117 0x1e000000,
118 0x78320000,
119 0x1e000000,
120 0x78330000,
121 0x1e000000,
122 0x79190002,
123 0x00000000,
124 0x00000000,
125 0x00000000,
126 0x791a0002,
127 0x00000000,
128 0x00000000,
129 0x00000000,
130 0x791b0002,
131 0x00000000,
Mika Kuoppala229b0482014-05-14 17:02:17 +0300132 0x00000000,
133 0x00000000,
134 0x79120000,
135 0x00000000,
136 0x79130000,
137 0x00000000,
138 0x79140000,
139 0x00000000,
140 0x79150000,
141 0x00000000,
142 0x79160000,
143 0x00000000,
Armin Reese655b5392014-10-23 08:34:27 -0700144 0x78150009,
Mika Kuoppala229b0482014-05-14 17:02:17 +0300145 0x00000000,
146 0x00000000,
147 0x00000000,
Mika Kuoppala229b0482014-05-14 17:02:17 +0300148 0x00000000,
Mika Kuoppala229b0482014-05-14 17:02:17 +0300149 0x00000000,
Armin Reese655b5392014-10-23 08:34:27 -0700150 0x00000000,
Mika Kuoppala229b0482014-05-14 17:02:17 +0300151 0x00000000,
152 0x00000000,
153 0x00000000,
154 0x00000000,
155 0x78190009,
156 0x00000000,
157 0x00000000,
158 0x00000000,
159 0x00000000,
160 0x00000000,
161 0x00000000,
162 0x00000000,
163 0x00000000,
164 0x00000000,
165 0x00000000,
Armin Reese655b5392014-10-23 08:34:27 -0700166 0x781a0009,
Mika Kuoppala229b0482014-05-14 17:02:17 +0300167 0x00000000,
168 0x00000000,
169 0x00000000,
170 0x00000000,
171 0x00000000,
172 0x00000000,
173 0x00000000,
174 0x00000000,
Mika Kuoppala229b0482014-05-14 17:02:17 +0300175 0x00000000,
176 0x00000000,
177 0x78160009,
178 0x00000000,
179 0x00000000,
180 0x00000000,
181 0x00000000,
182 0x00000000,
183 0x00000000,
184 0x00000000,
185 0x00000000,
186 0x00000000,
187 0x00000000,
Mika Kuoppala229b0482014-05-14 17:02:17 +0300188 0x78170009,
189 0x00000000,
190 0x00000000,
191 0x00000000,
192 0x00000000,
193 0x00000000,
194 0x00000000,
195 0x00000000,
196 0x00000000,
197 0x00000000,
198 0x00000000,
Armin Reese655b5392014-10-23 08:34:27 -0700199 0x78490001,
Mika Kuoppala229b0482014-05-14 17:02:17 +0300200 0x00000000,
201 0x00000000,
Armin Reese655b5392014-10-23 08:34:27 -0700202 0x784a0000,
203 0x00000000,
204 0x784b0000,
205 0x00000004,
206 0x79170101,
207 0x00000000,
208 0x00000080,
Mika Kuoppala229b0482014-05-14 17:02:17 +0300209 0x00000000,
210 0x00000000,
211 0x00000000,
212 0x00000000,
Armin Reese655b5392014-10-23 08:34:27 -0700213 0x00000000,
214 0x00000000,
215 0x00000000,
216 0x00000000,
217 0x00000000,
218 0x00000000,
219 0x00000000,
220 0x00000000,
221 0x00000000,
222 0x00000000,
223 0x00000000,
224 0x00000000,
225 0x00000000,
226 0x00000000,
227 0x00000000,
228 0x00000000,
229 0x00000000,
230 0x00000000,
231 0x00000000,
232 0x00000000,
233 0x00000000,
234 0x00000000,
235 0x00000000,
236 0x00000000,
237 0x00000000,
238 0x00000000,
239 0x00000000,
240 0x00000000,
241 0x00000000,
242 0x00000000,
243 0x00000000,
244 0x00000000,
245 0x00000000,
246 0x00000000,
247 0x00000000,
248 0x00000000,
249 0x00000000,
250 0x00000000,
251 0x00000000,
252 0x00000000,
253 0x00000000,
254 0x00000000,
255 0x00000000,
256 0x00000000,
257 0x00000000,
258 0x00000000,
259 0x00000000,
260 0x00000000,
261 0x00000000,
262 0x00000000,
263 0x00000000,
264 0x00000000,
265 0x00000000,
266 0x00000000,
267 0x00000000,
268 0x00000000,
269 0x00000000,
270 0x00000000,
271 0x00000000,
272 0x00000000,
273 0x00000000,
274 0x00000000,
275 0x00000000,
276 0x00000000,
277 0x00000000,
278 0x00000000,
279 0x00000000,
280 0x00000000,
281 0x00000000,
282 0x00000000,
283 0x00000000,
284 0x00000000,
285 0x00000000,
286 0x00000000,
287 0x00000000,
288 0x00000000,
289 0x00000000,
290 0x00000000,
291 0x00000000,
292 0x00000000,
293 0x00000000,
294 0x00000000,
295 0x00000000,
296 0x00000000,
297 0x00000000,
298 0x00000000,
299 0x00000000,
300 0x00000000,
301 0x00000000,
302 0x00000000,
303 0x00000000,
304 0x00000000,
305 0x00000000,
306 0x00000000,
307 0x00000000,
308 0x00000000,
309 0x00000000,
310 0x00000000,
311 0x00000000,
312 0x00000000,
313 0x00000000,
314 0x00000000,
315 0x00000000,
316 0x00000000,
317 0x00000000,
318 0x00000000,
319 0x00000000,
320 0x00000000,
321 0x00000000,
322 0x00000000,
323 0x00000000,
324 0x00000000,
325 0x00000000,
326 0x00000000,
327 0x00000000,
328 0x00000000,
329 0x00000000,
330 0x00000000,
331 0x00000000,
332 0x00000000,
333 0x00000000,
334 0x00000000,
335 0x00000000,
336 0x00000000,
337 0x00000000,
338 0x00000000,
339 0x00000000,
340 0x00000000,
341 0x00000000,
342 0x00000000,
343 0x00000000,
344 0x00000000,
345 0x00000000,
346 0x00000000,
347 0x00000000,
348 0x00000000,
349 0x00000000,
350 0x00000000,
351 0x00000000,
352 0x00000000,
353 0x00000000,
354 0x00000000,
355 0x00000000,
356 0x00000000,
357 0x00000000,
358 0x00000000,
359 0x00000000,
360 0x00000000,
361 0x00000000,
362 0x00000000,
363 0x00000000,
364 0x00000000,
365 0x00000000,
366 0x00000000,
367 0x00000000,
368 0x00000000,
369 0x00000000,
370 0x00000000,
371 0x00000000,
372 0x00000000,
373 0x00000000,
374 0x00000000,
375 0x00000000,
376 0x00000000,
377 0x00000000,
378 0x00000000,
379 0x00000000,
380 0x00000000,
381 0x00000000,
382 0x00000000,
383 0x00000000,
384 0x00000000,
385 0x00000000,
386 0x00000000,
387 0x00000000,
388 0x00000000,
389 0x00000000,
390 0x00000000,
391 0x00000000,
392 0x00000000,
393 0x00000000,
394 0x00000000,
395 0x00000000,
396 0x00000000,
397 0x00000000,
398 0x00000000,
399 0x00000000,
400 0x00000000,
401 0x00000000,
402 0x00000000,
403 0x00000000,
404 0x00000000,
405 0x00000000,
406 0x00000000,
407 0x00000000,
408 0x00000000,
409 0x00000000,
410 0x00000000,
411 0x00000000,
412 0x00000000,
413 0x00000000,
414 0x00000000,
415 0x00000000,
416 0x00000000,
417 0x00000000,
418 0x00000000,
419 0x00000000,
420 0x00000000,
421 0x00000000,
422 0x00000000,
423 0x00000000,
424 0x00000000,
425 0x00000000,
426 0x00000000,
427 0x00000000,
428 0x00000000,
429 0x00000000,
430 0x00000000,
431 0x00000000,
432 0x00000000,
433 0x00000000,
434 0x00000000,
435 0x00000000,
436 0x00000000,
437 0x00000000,
438 0x00000000,
439 0x00000000,
440 0x00000000,
441 0x00000000,
442 0x00000000,
443 0x00000000,
444 0x00000000,
445 0x00000000,
446 0x00000000,
447 0x00000000,
448 0x00000000,
449 0x00000000,
450 0x00000000,
451 0x00000000,
452 0x00000000,
453 0x00000000,
454 0x00000000,
455 0x00000000,
456 0x00000000,
457 0x00000000,
458 0x00000000,
459 0x00000000,
460 0x00000000,
461 0x00000000,
462 0x00000000,
463 0x00000000,
464 0x00000000,
465 0x79180006,
466 0x00000000,
467 0x00000000,
468 0x00000000,
469 0x00000000,
470 0x00000000,
471 0x00000000,
472 0x00000000,
473 0x79180006,
474 0x20000000,
475 0x00000000,
476 0x00000000,
477 0x00000000,
478 0x00000000,
479 0x00000000,
480 0x00000000,
481 0x79180006,
Mika Kuoppala229b0482014-05-14 17:02:17 +0300482 0x40000000,
Armin Reese655b5392014-10-23 08:34:27 -0700483 0x00000000,
484 0x00000000,
485 0x00000000,
486 0x00000000,
487 0x00000000,
488 0x00000000,
489 0x79180006,
490 0x60000000,
491 0x00000000,
492 0x00000000,
493 0x00000000,
494 0x00000000,
495 0x00000000,
496 0x00000000,
497 0x6101000e,
498 0x00000001, /* reloc */
499 0x00000000,
500 0x00000000,
501 0x00000001, /* reloc */
502 0x00000000,
503 0x00000001, /* reloc */
504 0x00000000,
505 0x00000001,
506 0x00000000,
507 0x00000001, /* reloc */
508 0x00000000,
509 0x00001001,
510 0x00001001,
511 0x00000001,
512 0x00001001,
513 0x61020001,
514 0x00000000,
515 0x00000000,
516 0x79000002,
517 0x00000000,
518 0x00000000,
519 0x00000000,
Mika Kuoppala229b0482014-05-14 17:02:17 +0300520 0x78050006,
521 0x00000000,
522 0x00000000,
523 0x00000000,
524 0x00000000,
525 0x00000000,
526 0x00000000,
527 0x00000000,
Armin Reese655b5392014-10-23 08:34:27 -0700528 0x79040002,
529 0x00000000,
530 0x00000000,
531 0x00000000,
532 0x79040002,
533 0x40000000,
534 0x00000000,
535 0x00000000,
536 0x79040002,
537 0x80000000,
538 0x00000000,
539 0x00000000,
540 0x79040002,
541 0xc0000000,
542 0x00000000,
543 0x00000000,
544 0x79080001,
545 0x00000000,
546 0x00000000,
547 0x790a0001,
548 0x00000000,
549 0x00000000,
550 0x78060003,
551 0x00000000,
552 0x00000000,
553 0x00000000,
554 0x00000000,
Mika Kuoppala229b0482014-05-14 17:02:17 +0300555 0x78070003,
556 0x00000000,
557 0x00000000,
558 0x00000000,
559 0x00000000,
Mika Kuoppala229b0482014-05-14 17:02:17 +0300560 0x78040001,
561 0x00000000,
Armin Reese655b5392014-10-23 08:34:27 -0700562 0x00000000,
563 0x79110000,
564 0x00000000,
565 0x780d0000,
566 0x00000000,
567 0x79060000,
568 0x00000000,
569 0x7907001f,
Mika Kuoppala229b0482014-05-14 17:02:17 +0300570 0x00000000,
571 0x00000000,
Mika Kuoppala229b0482014-05-14 17:02:17 +0300572 0x00000000,
573 0x00000000,
Armin Reese655b5392014-10-23 08:34:27 -0700574 0x00000000,
575 0x00000000,
576 0x00000000,
577 0x00000000,
578 0x00000000,
579 0x00000000,
580 0x00000000,
581 0x00000000,
582 0x00000000,
583 0x00000000,
584 0x00000000,
585 0x00000000,
586 0x00000000,
587 0x00000000,
588 0x00000000,
589 0x00000000,
590 0x00000000,
591 0x00000000,
592 0x00000000,
593 0x00000000,
594 0x00000000,
595 0x00000000,
596 0x00000000,
597 0x00000000,
598 0x00000000,
599 0x00000000,
600 0x00000000,
601 0x00000000,
602 0x7902000f,
603 0x00000000,
604 0x00000000,
605 0x00000000,
606 0x00000000,
607 0x00000000,
608 0x00000000,
609 0x00000000,
610 0x00000000,
611 0x00000000,
612 0x00000000,
613 0x00000000,
614 0x00000000,
615 0x00000000,
616 0x00000000,
617 0x00000000,
618 0x00000000,
619 0x790c000f,
620 0x00000000,
621 0x00000000,
622 0x00000000,
623 0x00000000,
624 0x00000000,
625 0x00000000,
626 0x00000000,
627 0x00000000,
628 0x00000000,
629 0x00000000,
630 0x00000000,
631 0x00000000,
632 0x00000000,
633 0x00000000,
634 0x00000000,
635 0x00000000,
636 0x780a0003,
637 0x00000000,
638 0x00000000,
639 0x00000000,
640 0x00000000,
641 0x78080083,
642 0x00004000,
643 0x00000000,
644 0x00000000,
645 0x00000000,
646 0x04004000,
647 0x00000000,
648 0x00000000,
649 0x00000000,
650 0x08004000,
651 0x00000000,
652 0x00000000,
653 0x00000000,
654 0x0c004000,
655 0x00000000,
656 0x00000000,
657 0x00000000,
658 0x10004000,
659 0x00000000,
660 0x00000000,
661 0x00000000,
662 0x14004000,
663 0x00000000,
664 0x00000000,
665 0x00000000,
666 0x18004000,
667 0x00000000,
668 0x00000000,
669 0x00000000,
670 0x1c004000,
671 0x00000000,
672 0x00000000,
673 0x00000000,
674 0x20004000,
675 0x00000000,
676 0x00000000,
677 0x00000000,
678 0x24004000,
679 0x00000000,
680 0x00000000,
681 0x00000000,
682 0x28004000,
683 0x00000000,
684 0x00000000,
685 0x00000000,
686 0x2c004000,
687 0x00000000,
688 0x00000000,
689 0x00000000,
690 0x30004000,
691 0x00000000,
692 0x00000000,
693 0x00000000,
694 0x34004000,
695 0x00000000,
696 0x00000000,
697 0x00000000,
698 0x38004000,
699 0x00000000,
700 0x00000000,
701 0x00000000,
702 0x3c004000,
703 0x00000000,
704 0x00000000,
705 0x00000000,
706 0x40004000,
707 0x00000000,
708 0x00000000,
709 0x00000000,
710 0x44004000,
711 0x00000000,
712 0x00000000,
713 0x00000000,
714 0x48004000,
715 0x00000000,
716 0x00000000,
717 0x00000000,
718 0x4c004000,
719 0x00000000,
720 0x00000000,
721 0x00000000,
722 0x50004000,
723 0x00000000,
724 0x00000000,
725 0x00000000,
726 0x54004000,
727 0x00000000,
728 0x00000000,
729 0x00000000,
730 0x58004000,
731 0x00000000,
732 0x00000000,
733 0x00000000,
734 0x5c004000,
735 0x00000000,
736 0x00000000,
737 0x00000000,
738 0x60004000,
739 0x00000000,
740 0x00000000,
741 0x00000000,
742 0x64004000,
743 0x00000000,
744 0x00000000,
745 0x00000000,
746 0x68004000,
747 0x00000000,
748 0x00000000,
749 0x00000000,
750 0x6c004000,
751 0x00000000,
752 0x00000000,
753 0x00000000,
754 0x70004000,
755 0x00000000,
756 0x00000000,
757 0x00000000,
758 0x74004000,
759 0x00000000,
760 0x00000000,
761 0x00000000,
762 0x78004000,
763 0x00000000,
764 0x00000000,
765 0x00000000,
766 0x7c004000,
767 0x00000000,
768 0x00000000,
769 0x00000000,
770 0x80004000,
771 0x00000000,
772 0x00000000,
773 0x00000000,
774 0x78090043,
Mika Kuoppala229b0482014-05-14 17:02:17 +0300775 0x02000000,
776 0x22220000,
Mika Kuoppala229b0482014-05-14 17:02:17 +0300777 0x00000000,
778 0x00000000,
Armin Reese655b5392014-10-23 08:34:27 -0700779 0x00000000,
780 0x00000000,
781 0x00000000,
782 0x00000000,
783 0x00000000,
784 0x00000000,
785 0x00000000,
786 0x00000000,
787 0x00000000,
788 0x00000000,
789 0x00000000,
790 0x00000000,
791 0x00000000,
792 0x00000000,
793 0x00000000,
794 0x00000000,
795 0x00000000,
796 0x00000000,
797 0x00000000,
798 0x00000000,
799 0x00000000,
800 0x00000000,
801 0x00000000,
802 0x00000000,
803 0x00000000,
804 0x00000000,
805 0x00000000,
806 0x00000000,
807 0x00000000,
808 0x00000000,
809 0x00000000,
810 0x00000000,
811 0x00000000,
812 0x00000000,
813 0x00000000,
814 0x00000000,
815 0x00000000,
816 0x00000000,
817 0x00000000,
818 0x00000000,
819 0x00000000,
820 0x00000000,
821 0x00000000,
822 0x00000000,
823 0x00000000,
824 0x00000000,
825 0x00000000,
826 0x00000000,
827 0x00000000,
828 0x00000000,
829 0x00000000,
830 0x00000000,
831 0x00000000,
832 0x00000000,
833 0x00000000,
834 0x00000000,
835 0x00000000,
836 0x00000000,
837 0x00000000,
838 0x00000000,
839 0x00000000,
840 0x00000000,
841 0x00000000,
842 0x00000000,
843 0x680b0001,
844 0x78260000,
845 0x00000000,
846 0x78270000,
847 0x00000000,
848 0x78280000,
849 0x00000000,
850 0x78290000,
851 0x00000000,
852 0x782a0000,
853 0x00000000,
854 0x780e0000,
855 0x00000dc1,
856 0x78240000,
857 0x00000e01,
858 0x784f0000,
859 0x80000100,
860 0x784d0000,
861 0x40000000,
862 0x782b0000,
863 0x00000000,
864 0x782c0000,
865 0x00000000,
866 0x782d0000,
867 0x00000000,
868 0x782e0000,
869 0x00000000,
870 0x782f0000,
871 0x00000000,
872 0x780f0000,
873 0x00000000,
874 0x78230000,
875 0x00000e60,
876 0x78210000,
877 0x00000e80,
Mika Kuoppala229b0482014-05-14 17:02:17 +0300878 0x7b000005,
Armin Reese655b5392014-10-23 08:34:27 -0700879 0x00000004,
880 0x00000001,
Mika Kuoppala229b0482014-05-14 17:02:17 +0300881 0x00000000,
882 0x00000001,
883 0x00000000,
884 0x00000000,
885 0x05000000, /* cmds end */
886 0x00000000,
887 0x00000000,
888 0x00000000,
889 0x00000000,
890 0x00000000,
891 0x00000000,
Armin Reese655b5392014-10-23 08:34:27 -0700892 0x00000000, /* state start */
Mika Kuoppala229b0482014-05-14 17:02:17 +0300893 0x00000000,
894 0x3f800000,
Mika Kuoppala229b0482014-05-14 17:02:17 +0300895 0x3f800000,
Armin Reese655b5392014-10-23 08:34:27 -0700896 0x3f800000,
897 0x3f800000,
898 0x00000000,
899 0x00000000,
900 0x00000000,
901 0x00000000,
902 0x00000000,
903 0x00000000,
904 0x00000000,
905 0x00000000,
906 0x00000000,
907 0x00000000,
908 0x00000000,
909 0x00000000,
910 0x00000000,
911 0x00000000,
912 0x00000000,
913 0x00000000,
914 0x00000000,
915 0x00000000,
916 0x00000000,
917 0x00000000,
918 0x00000000,
919 0x00000000,
920 0x00000000,
921 0x00000000,
922 0x00000000,
923 0x00000000,
924 0x00000000,
925 0x00000000,
926 0x00000000,
927 0x00000000,
928 0x00000000,
929 0x00000000,
930 0x00000000,
931 0x00000000,
932 0x00000000,
933 0x00000000,
934 0x00000000,
935 0x00000000,
936 0x00000000,
937 0x00000000,
938 0x00000000,
939 0x00000000,
940 0x00000000,
941 0x00000000,
942 0x00000000,
943 0x00000000,
944 0x00000000,
945 0x00000000,
946 0x00000000,
947 0x00000000,
948 0x00000000,
949 0x00000000,
Mika Kuoppala229b0482014-05-14 17:02:17 +0300950 0x00000000,
951 0x00000000,
952 0x00000000,
953 0x00000000,
954 0x00000000,
955 0x00000000, /* state end */
Mika Kuoppala9d0a6fa2014-05-14 17:02:16 +0300956};
957
958RO_RENDERSTATE(8);