mirror of
https://github.com/torvalds/linux.git
synced 2024-12-15 07:33:56 +00:00
1ce826d436
Rewrite i915_gem_render_state.c for the purposes of clarity and compactness, in the process we can eliminate some dodgy math that did not handle 64bit addresses correctly. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Cc: Damien Lespiau <damien.lespiau@intel.com> Cc: Mika Kuoppala <mika.kuoppala@intel.com> Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
291 lines
3.8 KiB
C
291 lines
3.8 KiB
C
#include "intel_renderstate.h"
|
|
|
|
static const u32 gen6_null_state_relocs[] = {
|
|
0x00000020,
|
|
0x00000024,
|
|
0x0000002c,
|
|
0x000001e0,
|
|
0x000001e4,
|
|
-1,
|
|
};
|
|
|
|
static const u32 gen6_null_state_batch[] = {
|
|
0x69040000,
|
|
0x790d0001,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x78180000,
|
|
0x00000001,
|
|
0x61010008,
|
|
0x00000000,
|
|
0x00000001, /* reloc */
|
|
0x00000001, /* reloc */
|
|
0x00000000,
|
|
0x00000001, /* reloc */
|
|
0x00000000,
|
|
0x00000001,
|
|
0x00000000,
|
|
0x00000001,
|
|
0x61020000,
|
|
0x00000000,
|
|
0x78050001,
|
|
0x00000018,
|
|
0x00000000,
|
|
0x780d1002,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000420,
|
|
0x78150003,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x78100004,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x78160003,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x78110005,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x78120002,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x78170003,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x79050005,
|
|
0xe0040000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x79100000,
|
|
0x00000000,
|
|
0x79000002,
|
|
0xffffffff,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x780e0002,
|
|
0x00000441,
|
|
0x00000401,
|
|
0x00000401,
|
|
0x78021002,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000400,
|
|
0x78130012,
|
|
0x00400810,
|
|
0x00000000,
|
|
0x20000000,
|
|
0x04000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x78140007,
|
|
0x00000280,
|
|
0x08080000,
|
|
0x00000000,
|
|
0x00060000,
|
|
0x4e080002,
|
|
0x00100400,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x78090005,
|
|
0x02000000,
|
|
0x22220000,
|
|
0x02f60000,
|
|
0x11330000,
|
|
0x02850004,
|
|
0x11220000,
|
|
0x78011002,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000200,
|
|
0x78080003,
|
|
0x00002000,
|
|
0x00000448, /* reloc */
|
|
0x00000448, /* reloc */
|
|
0x00000000,
|
|
0x05000000, /* cmds end */
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000220, /* state start */
|
|
0x00000240,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x0060005a,
|
|
0x204077be,
|
|
0x000000c0,
|
|
0x008d0040,
|
|
0x0060005a,
|
|
0x206077be,
|
|
0x000000c0,
|
|
0x008d0080,
|
|
0x0060005a,
|
|
0x208077be,
|
|
0x000000d0,
|
|
0x008d0040,
|
|
0x0060005a,
|
|
0x20a077be,
|
|
0x000000d0,
|
|
0x008d0080,
|
|
0x00000201,
|
|
0x20080061,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00600001,
|
|
0x20200022,
|
|
0x008d0000,
|
|
0x00000000,
|
|
0x02800031,
|
|
0x21c01cc9,
|
|
0x00000020,
|
|
0x0a8a0001,
|
|
0x00600001,
|
|
0x204003be,
|
|
0x008d01c0,
|
|
0x00000000,
|
|
0x00600001,
|
|
0x206003be,
|
|
0x008d01e0,
|
|
0x00000000,
|
|
0x00600001,
|
|
0x208003be,
|
|
0x008d0200,
|
|
0x00000000,
|
|
0x00600001,
|
|
0x20a003be,
|
|
0x008d0220,
|
|
0x00000000,
|
|
0x00600001,
|
|
0x20c003be,
|
|
0x008d0240,
|
|
0x00000000,
|
|
0x00600001,
|
|
0x20e003be,
|
|
0x008d0260,
|
|
0x00000000,
|
|
0x00600001,
|
|
0x210003be,
|
|
0x008d0280,
|
|
0x00000000,
|
|
0x00600001,
|
|
0x212003be,
|
|
0x008d02a0,
|
|
0x00000000,
|
|
0x05800031,
|
|
0x24001cc8,
|
|
0x00000040,
|
|
0x90019000,
|
|
0x0000007e,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x0000007e,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x0000007e,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x0000007e,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x0000007e,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x0000007e,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x0000007e,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x0000007e,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x30000000,
|
|
0x00000124,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0xf99a130c,
|
|
0x799a130c,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x00000000,
|
|
0x80000031,
|
|
0x00000003,
|
|
0x00000000, /* state end */
|
|
};
|
|
|
|
RO_RENDERSTATE(6);
|