tools/null_state_gen: Add GEN9 golden context batch buffer creation

Modifications to 'null_state_gen' so it can generate GEN9
golden context batch buffer source for SKL.

v2: - rebased on top of gen8 changes (Mika)
    - fixed state base address command size (Mika)
    - base address size macro as pages (Mika)

v3: - rebased on top of current master (Mika)
    - removed obsolete #includes (Mika)
    - added copyright (Mika)
    - render and component packing added (Mika)

Cc: Damien Lespiau <damien.lespiau@intel.com>
Cc: Armin Reese <armin.c.reese@intel.com>
Cc: Volkin, Bradley D <bradley.d.volkin@intel.com>
Reviewed-by: Volkin, Bradley D <bradley.d.volkin@intel.com> (v2)
Signed-off-by: Armin Reese <armin.c.reese@intel.com> (v1)
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
This commit is contained in:
Armin Reese
2014-09-05 13:58:11 -07:00
committed by Mika Kuoppala
parent 0e8ac72d5d
commit f246f1ed0c
4 changed files with 487 additions and 3 deletions
+2
View File
@@ -4,6 +4,7 @@
#include "gen8_render.h"
#define GEN7_3DSTATE_VF GEN6_3D(3, 0, 0x0c)
#define GEN9_3DSTATE_COMPONENT_PACKING GEN6_3D(3, 0, 0x55)
#define GEN9_SBE_ACTIVE_COMPONENT_NONE 0
#define GEN9_SBE_ACTIVE_COMPONENT_XY 1
@@ -11,5 +12,6 @@
#define GEN9_SBE_ACTIVE_COMPONENT_XYZW 3
#define GEN9_PIPELINE_SELECTION_MASK (3 << 8)
#define GEN9_PIPELINE_SELECT (GEN6_3D(1, 1, 4) | (3 << 8))
#endif