[Beignet] [PATCH 2/3] BDW: Refine intel_gpgpu_setup_bti and add intel_gpgpu_set_base_address for BDW.
Yang Rong
rong.r.yang at intel.com
Sun Sep 28 22:38:11 PDT 2014
Because the sizeof struct surface state change in BDW, remove gen6_surface_state, and
use gen_surface_state as the unoin of gen7_surface_state and gen8_surface_state.
Use gen_surface_state in surface_heap_t.
Reloc the Dynamic State Base and Instruction Address in intel_gpgpu_set_base_address_gen8.
BDW use 48 bits GPU address, so when reloc address, remember that kernel will reloc 64 bits in
command batch, so make sure there are 64 bits address, the high 64bits follow by low 32bits in command batch.
Signed-off-by: Yang Rong <rong.r.yang at intel.com>
---
src/intel/.intel_gpgpu.c.swp | Bin 0 -> 81920 bytes
src/intel/intel_defines.h | 1 +
src/intel/intel_gpgpu.c | 186 +++++++++++++++++++++----------------------
src/intel/intel_structs.h | 78 ++----------------
4 files changed, 97 insertions(+), 168 deletions(-)
create mode 100644 src/intel/.intel_gpgpu.c.swp
diff --git a/src/intel/.intel_gpgpu.c.swp b/src/intel/.intel_gpgpu.c.swp
new file mode 100644
index 0000000000000000000000000000000000000000..61a705e3f41582fd9cf855655fe391dea4be8617
GIT binary patch
literal 81920
zcmeIb2Yh5#dH<~hY<e}ln2Y_|NV{6C+G at 4cQQNg_t+Ys57mRZmjYiUVM>F!wXti<!
z?0^k~518hJmH+_)gg+tl5)(=if+=>u6jMy7AsG0>O9-9!`#k5|d(SO1(yrG8UNoQ2
zPcypr)aTTvoafARo;P~H+uqUJ!smf4EpPsK>+~mkpV at M^ww9LsLT+)XRw>J?W}hJ3
zmf1q>aJ{nBDC|{1z^%2)ay4JrI#Vdlmkaf+wQ7EAv0N{d%wK<gX?|(BBi|^UjprK_
z*r32MQee40x26AnEj`^`of7l((;n}g^58?qn8-%(4GL^fV1oi16xg7^1_d at Kut9+h
z3T#l|_n89qr3be>l?wc^twh~^|54)m?)HBPE1zZa)e?j|$^JiRzki%~f3p35-hTJl
zh(Y{&*yjuO`xS}z_q5N0@||Q09K^queP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g
zycB4i{!lmb8};6xzy<|2D6m0+4GR2 at QNWnM84e>Q=uxSTF at rO=MMVsxWe$aV4))*j
z$k>6)d3Km|yk&@3$S{}2Z=9Is%C)n8saTdH at zo+1W{aN~v1Yc%T=NSR%yzx=xC&?g
zxZmC4 at R}~G3GZl*CyRMZSO_aH63&uz?KLo#j|<<egRxAd*mhSlmTU2kw2^X!b-n#;
zE$@0k=q0(7I$QJ<u|7fI*}_tN-GSE~aAmFR8^{yaiWc(HhEHC1aO9R^fo|>A>0Zq~
zhJ)h{NR71aJWT(Oaqg;Nk1RpAW%KSai(+NRtwcyu<em!SYw-eq>d>S}WW>cNRWJis
zMHu2tRg|;%F2Z}S+SnyVrLBvtlO;rKnBqN2F0?b|k=2#pl3?QwP at L|~R@|%X$&ria
z&obgKBSHw~3wkS;+TeSa(WsZ#O^=R^h%agX!UF^6*z1CjJ(=l2LgNzEj8|f)eA_wI
zVfwxtl`~GMB{BcPz);ssB|Fax)|;o8w`FE_fjb=@Gea!3?CH=kN$t!xZmXjivKKFL
za=@1h4!Db2oJ8W`Key_0L~jw#SwzxvRHml!z}ypcq{u<o!qK`3siWD*rbN1D at -`2-
zsaJ-2{G}tXv~TEGCSD+I#JyuYPF!SRI#wWRj%pPx8yRxPcz+2N6H{%uB1H~2L|y}J
TM~MXsUQ45yf$)2|lC}JQDEuA8
literal 0
HcmV?d00001
diff --git a/src/intel/intel_defines.h b/src/intel/intel_defines.h
index 02ffde4..b424233 100644
--- a/src/intel/intel_defines.h
+++ b/src/intel/intel_defines.h
@@ -87,6 +87,7 @@
#define PIPELINE_SELECT_3D 0
#define PIPELINE_SELECT_MEDIA 1
+#define PIPELINE_SELECT_GPGPU 2
#define UF0_CS_REALLOC (1 << 13)
#define UF0_VFE_REALLOC (1 << 12)
diff --git a/src/intel/intel_gpgpu.c b/src/intel/intel_gpgpu.c
index eedfe31..6d3c443 100644
--- a/src/intel/intel_gpgpu.c
+++ b/src/intel/intel_gpgpu.c
@@ -58,16 +58,9 @@
/* Stores both binding tables and surface states */
typedef struct surface_heap {
uint32_t binding_table[256];
- char surface[256][sizeof(gen6_surface_state_t)];
+ char surface[256*sizeof(gen_surface_state_t)];
} surface_heap_t;
-/* Stores both binding tables and surface states */
-typedef struct surface_heap_gen8 {
- uint32_t binding_table[256];
- char surface[256][sizeof(gen8_surface_state_t)];
-} surface_heap_gen8_t;
-
-
typedef struct intel_event {
drm_intel_bo *buffer;
drm_intel_bo *ts_buf;
@@ -142,6 +135,14 @@ intel_gpgpu_post_action_t *intel_gpgpu_post_action = NULL;
typedef uint64_t (intel_gpgpu_read_ts_reg_t)(drm_intel_bufmgr *bufmgr);
intel_gpgpu_read_ts_reg_t *intel_gpgpu_read_ts_reg = NULL;
+
+typedef void (intel_gpgpu_set_base_address_t)(intel_gpgpu_t *gpgpu);
+intel_gpgpu_set_base_address_t *intel_gpgpu_set_base_address = NULL;
+
+typedef void (intel_gpgpu_setup_bti_t)(intel_gpgpu_t *gpgpu, drm_intel_bo *buf, uint32_t internal_offset,
+ uint32_t size, unsigned char index, uint32_t format);
+intel_gpgpu_setup_bti_t *intel_gpgpu_setup_bti = NULL;
+
static void
intel_gpgpu_sync(void *buf)
{
@@ -234,7 +235,7 @@ intel_gpgpu_get_cache_ctrl_gen8()
}
static void
-intel_gpgpu_set_base_address(intel_gpgpu_t *gpgpu)
+intel_gpgpu_set_base_address_gen7(intel_gpgpu_t *gpgpu)
{
const uint32_t def_cc = cl_gpgpu_get_cache_ctrl(); /* default Cache Control value */
BEGIN_BATCH(gpgpu->batch, 10);
@@ -272,6 +273,58 @@ intel_gpgpu_set_base_address(intel_gpgpu_t *gpgpu)
ADVANCE_BATCH(gpgpu->batch);
}
+static void
+intel_gpgpu_set_base_address_gen8(intel_gpgpu_t *gpgpu)
+{
+ const uint32_t def_cc = cl_gpgpu_get_cache_ctrl(); /* default Cache Control value */
+ BEGIN_BATCH(gpgpu->batch, 16);
+ OUT_BATCH(gpgpu->batch, CMD_STATE_BASE_ADDRESS | 14);
+ /* 0, Gen State Mem Obj CC, Stateless Mem Obj CC, Stateless Access Write Back */
+ OUT_BATCH(gpgpu->batch, 0 | (def_cc << 4) | (0 << 1)| BASE_ADDRESS_MODIFY); /* General State Base Addr */
+ OUT_BATCH(gpgpu->batch, 0);
+ OUT_BATCH(gpgpu->batch, 0 | (def_cc << 16));
+ /* 0, State Mem Obj CC */
+ /* We use a state base address for the surface heap since IVB clamp the
+ * binding table pointer at 11 bits. So, we cannot use pointers directly while
+ * using the surface heap
+ */
+ assert(gpgpu->aux_offset.surface_heap_offset % 4096 == 0);
+ OUT_RELOC(gpgpu->batch, gpgpu->aux_buf.bo,
+ I915_GEM_DOMAIN_SAMPLER,
+ I915_GEM_DOMAIN_SAMPLER,
+ gpgpu->aux_offset.surface_heap_offset + (0 | (def_cc << 4) | (0 << 1)| BASE_ADDRESS_MODIFY));
+ OUT_BATCH(gpgpu->batch, 0);
+ OUT_RELOC(gpgpu->batch, gpgpu->aux_buf.bo,
+ I915_GEM_DOMAIN_RENDER,
+ I915_GEM_DOMAIN_RENDER,
+ (0 | (def_cc << 4) | (0 << 1)| BASE_ADDRESS_MODIFY)); /* Dynamic State Base Addr */
+ OUT_BATCH(gpgpu->batch, 0);
+ OUT_BATCH(gpgpu->batch, 0 | (def_cc << 4) | BASE_ADDRESS_MODIFY); /* Indirect Obj Base Addr */
+ OUT_BATCH(gpgpu->batch, 0);
+ //OUT_BATCH(gpgpu->batch, 0 | (def_cc << 4) | BASE_ADDRESS_MODIFY); /* Instruction Base Addr */
+ OUT_RELOC(gpgpu->batch, (drm_intel_bo *)gpgpu->ker->bo,
+ I915_GEM_DOMAIN_INSTRUCTION,
+ I915_GEM_DOMAIN_INSTRUCTION,
+ 0 + (0 | (def_cc << 4) | (0 << 1)| BASE_ADDRESS_MODIFY));
+ OUT_BATCH(gpgpu->batch, 0);
+ /* If we output an AUB file, we limit the total size to 64MB */
+#if USE_FULSIM
+ OUT_BATCH(gpgpu->batch, 0x04000000 | BASE_ADDRESS_MODIFY); /* General State Access Upper Bound */
+ OUT_BATCH(gpgpu->batch, 0x04000000 | BASE_ADDRESS_MODIFY); /* Dynamic State Access Upper Bound */
+ OUT_BATCH(gpgpu->batch, 0x04000000 | BASE_ADDRESS_MODIFY); /* Indirect Obj Access Upper Bound */
+ OUT_BATCH(gpgpu->batch, 0x04000000 | BASE_ADDRESS_MODIFY); /* Instruction Access Upper Bound */
+#else
+ OUT_BATCH(gpgpu->batch, 0xfffff000 | BASE_ADDRESS_MODIFY);
+ /* According to mesa i965 driver code, we must set the dynamic state access upper bound
+ * to a valid bound value, otherwise, the border color pointer may be rejected and you
+ * may get incorrect border color. This is a known hardware bug. */
+ OUT_BATCH(gpgpu->batch, 0xfffff000 | BASE_ADDRESS_MODIFY);
+ OUT_BATCH(gpgpu->batch, 0xfffff000 | BASE_ADDRESS_MODIFY);
+ OUT_BATCH(gpgpu->batch, 0xfffff000 | BASE_ADDRESS_MODIFY);
+#endif /* USE_FULSIM */
+ ADVANCE_BATCH(gpgpu->batch);
+}
+
uint32_t intel_gpgpu_get_scratch_index_gen7(uint32_t size) {
return size / 1024 - 1;
}
@@ -702,86 +755,28 @@ intel_gpgpu_set_buf_reloc_gen7(intel_gpgpu_t *gpgpu, int32_t index, dri_bo* obj_
}
static dri_bo*
-intel_gpgpu_alloc_constant_buffer_gen7(intel_gpgpu_t *gpgpu, uint32_t size, uint8_t bti)
+intel_gpgpu_alloc_constant_buffer(intel_gpgpu_t *gpgpu, uint32_t size, uint8_t bti)
{
- uint32_t s = size - 1;
- assert(size != 0);
-
- surface_heap_t *heap = gpgpu->aux_buf.bo->virtual + gpgpu->aux_offset.surface_heap_offset;
- gen7_surface_state_t *ss2 = (gen7_surface_state_t *) heap->surface[bti];
- memset(ss2, 0, sizeof(gen7_surface_state_t));
- ss2->ss0.surface_type = I965_SURFACE_BUFFER;
- ss2->ss0.surface_format = I965_SURFACEFORMAT_R32G32B32A32_UINT;
- ss2->ss2.width = s & 0x7f; /* bits 6:0 of sz */
- ss2->ss2.height = (s >> 7) & 0x3fff; /* bits 20:7 of sz */
- ss2->ss3.depth = (s >> 21) & 0x3ff; /* bits 30:21 of sz */
- ss2->ss5.cache_control = cl_gpgpu_get_cache_ctrl();
- heap->binding_table[bti] = offsetof(surface_heap_t, surface) + bti* sizeof(gen7_surface_state_t);
-
if(gpgpu->constant_b.bo)
dri_bo_unreference(gpgpu->constant_b.bo);
- gpgpu->constant_b.bo = drm_intel_bo_alloc(gpgpu->drv->bufmgr, "CONSTANT_BUFFER", s, 64);
+ gpgpu->constant_b.bo = drm_intel_bo_alloc(gpgpu->drv->bufmgr, "CONSTANT_BUFFER", size, 64);
if (gpgpu->constant_b.bo == NULL)
return NULL;
- ss2->ss1.base_addr = gpgpu->constant_b.bo->offset;
- dri_bo_emit_reloc(gpgpu->aux_buf.bo,
- I915_GEM_DOMAIN_RENDER,
- I915_GEM_DOMAIN_RENDER,
- 0,
- gpgpu->aux_offset.surface_heap_offset +
- heap->binding_table[bti] +
- offsetof(gen7_surface_state_t, ss1),
- gpgpu->constant_b.bo);
- return gpgpu->constant_b.bo;
-}
-
-static dri_bo*
-intel_gpgpu_alloc_constant_buffer_gen75(intel_gpgpu_t *gpgpu, uint32_t size, uint8_t bti)
-{
- uint32_t s = size - 1;
- assert(size != 0);
-
- surface_heap_t *heap = gpgpu->aux_buf.bo->virtual + gpgpu->aux_offset.surface_heap_offset;
- gen7_surface_state_t *ss2 = (gen7_surface_state_t *) heap->surface[bti];
- memset(ss2, 0, sizeof(gen7_surface_state_t));
- ss2->ss0.surface_type = I965_SURFACE_BUFFER;
- ss2->ss0.surface_format = I965_SURFACEFORMAT_R32G32B32A32_UINT;
- ss2->ss2.width = s & 0x7f; /* bits 6:0 of sz */
- ss2->ss2.height = (s >> 7) & 0x3fff; /* bits 20:7 of sz */
- ss2->ss3.depth = (s >> 21) & 0x3ff; /* bits 30:21 of sz */
- ss2->ss5.cache_control = cl_gpgpu_get_cache_ctrl();
- ss2->ss7.shader_r = I965_SURCHAN_SELECT_RED;
- ss2->ss7.shader_g = I965_SURCHAN_SELECT_GREEN;
- ss2->ss7.shader_b = I965_SURCHAN_SELECT_BLUE;
- ss2->ss7.shader_a = I965_SURCHAN_SELECT_ALPHA;
- heap->binding_table[bti] = offsetof(surface_heap_t, surface) + bti* sizeof(gen7_surface_state_t);
- if(gpgpu->constant_b.bo)
- dri_bo_unreference(gpgpu->constant_b.bo);
- gpgpu->constant_b.bo = drm_intel_bo_alloc(gpgpu->drv->bufmgr, "CONSTANT_BUFFER", s, 64);
- if (gpgpu->constant_b.bo == NULL)
- return NULL;
- ss2->ss1.base_addr = gpgpu->constant_b.bo->offset;
- dri_bo_emit_reloc(gpgpu->aux_buf.bo,
- I915_GEM_DOMAIN_RENDER,
- I915_GEM_DOMAIN_RENDER,
- 0,
- gpgpu->aux_offset.surface_heap_offset +
- heap->binding_table[bti] +
- offsetof(gen7_surface_state_t, ss1),
- gpgpu->constant_b.bo);
+ intel_gpgpu_setup_bti(gpgpu, gpgpu->constant_b.bo, 0, size, bti, I965_SURFACEFORMAT_R32G32B32A32_UINT);
return gpgpu->constant_b.bo;
}
static void
-intel_gpgpu_setup_bti(intel_gpgpu_t *gpgpu, drm_intel_bo *buf, uint32_t internal_offset, uint32_t size, unsigned char index)
+intel_gpgpu_setup_bti_gen7(intel_gpgpu_t *gpgpu, drm_intel_bo *buf, uint32_t internal_offset,
+ uint32_t size, unsigned char index, uint32_t format)
{
uint32_t s = size - 1;
surface_heap_t *heap = gpgpu->aux_buf.bo->virtual + gpgpu->aux_offset.surface_heap_offset;
- gen7_surface_state_t *ss0 = (gen7_surface_state_t *) heap->surface[index];
+ gen7_surface_state_t *ss0 = (gen7_surface_state_t *) &heap->surface[index * sizeof(gen7_surface_state_t)];
memset(ss0, 0, sizeof(gen7_surface_state_t));
ss0->ss0.surface_type = I965_SURFACE_BUFFER;
- ss0->ss0.surface_format = I965_SURFACEFORMAT_RAW;
+ ss0->ss0.surface_format = format;
ss0->ss2.width = s & 0x7f; /* bits 6:0 of sz */
ss0->ss2.height = (s >> 7) & 0x3fff; /* bits 20:7 of sz */
ss0->ss3.depth = (s >> 21) & 0x3ff; /* bits 30:21 of sz */
@@ -800,15 +795,15 @@ intel_gpgpu_setup_bti(intel_gpgpu_t *gpgpu, drm_intel_bo *buf, uint32_t internal
}
static void
-intel_gpgpu_setup_bti_gen8(intel_gpgpu_t *gpgpu, drm_intel_bo *buf,
- uint32_t internal_offset, uint32_t size, unsigned char index)
+intel_gpgpu_setup_bti_gen8(intel_gpgpu_t *gpgpu, drm_intel_bo *buf, uint32_t internal_offset,
+ uint32_t size, unsigned char index, uint32_t format)
{
uint32_t s = size - 1;
- surface_heap_gen8_t *heap = gpgpu->aux_buf.bo->virtual + gpgpu->aux_offset.surface_heap_offset;
- gen8_surface_state_t *ss0 = (gen8_surface_state_t *) heap->surface[index];
+ surface_heap_t *heap = gpgpu->aux_buf.bo->virtual + gpgpu->aux_offset.surface_heap_offset;
+ gen8_surface_state_t *ss0 = (gen8_surface_state_t *) &heap->surface[index * sizeof(gen8_surface_state_t)];
memset(ss0, 0, sizeof(gen8_surface_state_t));
ss0->ss0.surface_type = I965_SURFACE_BUFFER;
- ss0->ss0.surface_format = I965_SURFACEFORMAT_RAW;
+ ss0->ss0.surface_format = format;
ss0->ss2.width = s & 0x7f; /* bits 6:0 of sz */
assert(ss0->ss2.width & 0x03);
ss0->ss2.height = (s >> 7) & 0x3fff; /* bits 20:7 of sz */
@@ -889,7 +884,7 @@ intel_gpgpu_bind_image_gen7(intel_gpgpu_t *gpgpu,
int32_t tiling)
{
surface_heap_t *heap = gpgpu->aux_buf.bo->virtual + gpgpu->aux_offset.surface_heap_offset;
- gen7_surface_state_t *ss = (gen7_surface_state_t *) heap->surface[index];
+ gen7_surface_state_t *ss = (gen7_surface_state_t *) &heap->surface[index * sizeof(gen7_surface_state_t)];
memset(ss, 0, sizeof(*ss));
ss->ss0.vertical_line_stride = 0; // always choose VALIGN_2
@@ -935,7 +930,7 @@ intel_gpgpu_bind_image_gen75(intel_gpgpu_t *gpgpu,
int32_t tiling)
{
surface_heap_t *heap = gpgpu->aux_buf.bo->virtual + gpgpu->aux_offset.surface_heap_offset;
- gen7_surface_state_t *ss = (gen7_surface_state_t *) heap->surface[index];
+ gen7_surface_state_t *ss = (gen7_surface_state_t *) &heap->surface[index * sizeof(gen7_surface_state_t)];
memset(ss, 0, sizeof(*ss));
ss->ss0.vertical_line_stride = 0; // always choose VALIGN_2
ss->ss0.surface_type = get_surface_type(gpgpu, index, type);
@@ -978,19 +973,7 @@ intel_gpgpu_bind_buf(intel_gpgpu_t *gpgpu, drm_intel_bo *buf, uint32_t offset,
gpgpu->target_buf_offset[gpgpu->binded_n] = internal_offset;
gpgpu->binded_offset[gpgpu->binded_n] = offset;
gpgpu->binded_n++;
- intel_gpgpu_setup_bti(gpgpu, buf, internal_offset, size, bti);
-}
-
-static void
-intel_gpgpu_bind_buf_gen8(intel_gpgpu_t *gpgpu, drm_intel_bo *buf, uint32_t offset,
- uint32_t internal_offset, uint32_t size, uint8_t bti)
-{
- assert(gpgpu->binded_n < max_buf_n);
- gpgpu->binded_buf[gpgpu->binded_n] = buf;
- gpgpu->target_buf_offset[gpgpu->binded_n] = internal_offset;
- gpgpu->binded_offset[gpgpu->binded_n] = offset;
- gpgpu->binded_n++;
- intel_gpgpu_setup_bti_gen8(gpgpu, buf, internal_offset, size, bti);
+ intel_gpgpu_setup_bti(gpgpu, buf, internal_offset, size, bti, I965_SURFACEFORMAT_RAW);
}
static int
@@ -1514,6 +1497,7 @@ intel_set_gpgpu_callbacks(int device_id)
cl_gpgpu_state_init = (cl_gpgpu_state_init_cb *) intel_gpgpu_state_init;
cl_gpgpu_set_perf_counters = (cl_gpgpu_set_perf_counters_cb *) intel_gpgpu_set_perf_counters;
cl_gpgpu_upload_curbes = (cl_gpgpu_upload_curbes_cb *) intel_gpgpu_upload_curbes;
+ cl_gpgpu_alloc_constant_buffer = (cl_gpgpu_alloc_constant_buffer_cb *) intel_gpgpu_alloc_constant_buffer;
cl_gpgpu_states_setup = (cl_gpgpu_states_setup_cb *) intel_gpgpu_states_setup;
cl_gpgpu_upload_samplers = (cl_gpgpu_upload_samplers_cb *) intel_gpgpu_upload_samplers;
cl_gpgpu_batch_reset = (cl_gpgpu_batch_reset_cb *) intel_gpgpu_batch_reset;
@@ -1539,23 +1523,29 @@ intel_set_gpgpu_callbacks(int device_id)
cl_gpgpu_get_printf_info = (cl_gpgpu_get_printf_info_cb *)intel_gpgpu_get_printf_info;
if (IS_BROADWELL(device_id)) {
- cl_gpgpu_bind_buf = (cl_gpgpu_bind_buf_cb *)intel_gpgpu_bind_buf_gen8;
+ intel_gpgpu_setup_bti = intel_gpgpu_setup_bti_gen8;
+ cl_gpgpu_bind_image = (cl_gpgpu_bind_image_cb *) intel_gpgpu_bind_image_gen75;
+ intel_gpgpu_set_L3 = intel_gpgpu_set_L3_gen75;
cl_gpgpu_get_cache_ctrl = (cl_gpgpu_get_cache_ctrl_cb *)intel_gpgpu_get_cache_ctrl_gen8;
+ intel_gpgpu_get_scratch_index = intel_gpgpu_get_scratch_index_gen75;
+ intel_gpgpu_post_action = intel_gpgpu_post_action_gen75;
+ intel_gpgpu_read_ts_reg = intel_gpgpu_read_ts_reg_gen7; //HSW same as ivb
+ intel_gpgpu_set_base_address = intel_gpgpu_set_base_address_gen8;
return;
}
if (IS_HASWELL(device_id)) {
cl_gpgpu_bind_image = (cl_gpgpu_bind_image_cb *) intel_gpgpu_bind_image_gen75;
- cl_gpgpu_alloc_constant_buffer = (cl_gpgpu_alloc_constant_buffer_cb *) intel_gpgpu_alloc_constant_buffer_gen75;
intel_gpgpu_set_L3 = intel_gpgpu_set_L3_gen75;
cl_gpgpu_get_cache_ctrl = (cl_gpgpu_get_cache_ctrl_cb *)intel_gpgpu_get_cache_ctrl_gen75;
intel_gpgpu_get_scratch_index = intel_gpgpu_get_scratch_index_gen75;
intel_gpgpu_post_action = intel_gpgpu_post_action_gen75;
intel_gpgpu_read_ts_reg = intel_gpgpu_read_ts_reg_gen7; //HSW same as ivb
+ intel_gpgpu_set_base_address = intel_gpgpu_set_base_address_gen7;
+ intel_gpgpu_setup_bti = intel_gpgpu_setup_bti_gen7;
}
else if (IS_IVYBRIDGE(device_id)) {
cl_gpgpu_bind_image = (cl_gpgpu_bind_image_cb *) intel_gpgpu_bind_image_gen7;
- cl_gpgpu_alloc_constant_buffer = (cl_gpgpu_alloc_constant_buffer_cb *) intel_gpgpu_alloc_constant_buffer_gen7;
if (IS_BAYTRAIL_T(device_id)) {
intel_gpgpu_set_L3 = intel_gpgpu_set_L3_baytrail;
intel_gpgpu_read_ts_reg = intel_gpgpu_read_ts_reg_baytrail;
@@ -1566,5 +1556,7 @@ intel_set_gpgpu_callbacks(int device_id)
cl_gpgpu_get_cache_ctrl = (cl_gpgpu_get_cache_ctrl_cb *)intel_gpgpu_get_cache_ctrl_gen7;
intel_gpgpu_get_scratch_index = intel_gpgpu_get_scratch_index_gen7;
intel_gpgpu_post_action = intel_gpgpu_post_action_gen7;
+ intel_gpgpu_set_base_address = intel_gpgpu_set_base_address_gen7;
+ intel_gpgpu_setup_bti = intel_gpgpu_setup_bti_gen7;
}
}
diff --git a/src/intel/intel_structs.h b/src/intel/intel_structs.h
index 415df8d..2d8bc54 100644
--- a/src/intel/intel_structs.h
+++ b/src/intel/intel_structs.h
@@ -98,75 +98,6 @@ typedef struct gen6_interface_descriptor
uint32_t desc7; /* unused */
} gen6_interface_descriptor_t;
-typedef struct gen6_surface_state
-{
- struct {
- uint32_t cube_pos_z:1;
- uint32_t cube_neg_z:1;
- uint32_t cube_pos_y:1;
- uint32_t cube_neg_y:1;
- uint32_t cube_pos_x:1;
- uint32_t cube_neg_x:1;
- uint32_t pad:2;
- uint32_t render_cache_read_mode:1;
- uint32_t cube_map_corner_mode:1;
- uint32_t mipmap_layout_mode:1;
- uint32_t vert_line_stride_ofs:1;
- uint32_t vert_line_stride:1;
- uint32_t color_blend:1;
- uint32_t writedisable_blue:1;
- uint32_t writedisable_green:1;
- uint32_t writedisable_red:1;
- uint32_t writedisable_alpha:1;
- uint32_t surface_format:9;
- uint32_t data_return_format:1;
- uint32_t pad0:1;
- uint32_t surface_type:3;
- } ss0;
-
- struct {
- uint32_t base_addr;
- } ss1;
-
- struct {
- uint32_t render_target_rotation:2;
- uint32_t mip_count:4;
- uint32_t width:13;
- uint32_t height:13;
- } ss2;
-
- struct {
- uint32_t tile_walk:1;
- uint32_t tiled_surface:1;
- uint32_t pad:1;
- uint32_t pitch:18;
- uint32_t depth:11;
- } ss3;
-
- struct {
- uint32_t multisample_pos_index:3;
- uint32_t pad:1;
- uint32_t multisample_count:3;
- uint32_t pad1:1;
- uint32_t rt_view_extent:9;
- uint32_t min_array_elt:11;
- uint32_t min_lod:4;
- } ss4;
-
- struct {
- uint32_t pad:16;
- uint32_t cache_control:2; /* different values for GT and IVB */
- uint32_t gfdt:1; /* allows selective flushing of LLC (e.g. for scanout) */
- uint32_t encrypted_data:1;
- uint32_t y_offset:4;
- uint32_t vertical_alignment:1;
- uint32_t x_offset:7;
- } ss5;
-
- uint32_t ss6; /* unused */
- uint32_t ss7; /* unused */
-} gen6_surface_state_t;
-
typedef struct gen7_surface_state
{
struct {
@@ -407,8 +338,13 @@ typedef struct gen8_surface_state
} ss15;
} gen8_surface_state_t;
-STATIC_ASSERT(sizeof(gen6_surface_state_t) == sizeof(gen7_surface_state_t));
-static const size_t surface_state_sz = sizeof(gen6_surface_state_t);
+typedef union gen_surface_state
+{
+ gen7_surface_state_t gen7_surface_state;
+ gen8_surface_state_t gen8_surface_state;
+} gen_surface_state_t;
+
+static const size_t surface_state_sz = sizeof(gen_surface_state_t);
typedef struct gen6_vfe_state_inline
{
--
1.8.3.2
More information about the Beignet
mailing list