mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-19 05:46:25 +00:00
rendercopy/gen8: Fix vertex buffer relocation
I was thrown by the routine calling itself gen7 when in it gen8 specific and required 64bit relocation fixes. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
c12f292b1d
commit
f473a5543e
@ -384,19 +384,18 @@ gen6_emit_vertex_elements(struct intel_batchbuffer *batch) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* gen7_emit_vertex_buffer emit the vertex buffers command
|
* gen8_emit_vertex_buffer emit the vertex buffers command
|
||||||
*
|
*
|
||||||
* @batch
|
* @batch
|
||||||
* @offset - bytw offset within the @batch where the vertex buffer starts.
|
* @offset - bytw offset within the @batch where the vertex buffer starts.
|
||||||
*/
|
*/
|
||||||
static void gen7_emit_vertex_buffer(struct intel_batchbuffer *batch,
|
static void gen8_emit_vertex_buffer(struct intel_batchbuffer *batch,
|
||||||
uint32_t offset) {
|
uint32_t offset) {
|
||||||
OUT_BATCH(GEN6_3DSTATE_VERTEX_BUFFERS | (1 + (4 * 1) - 2));
|
OUT_BATCH(GEN6_3DSTATE_VERTEX_BUFFERS | (1 + (4 * 1) - 2));
|
||||||
OUT_BATCH(0 << VB0_BUFFER_INDEX_SHIFT | /* VB 0th index */
|
OUT_BATCH(0 << VB0_BUFFER_INDEX_SHIFT | /* VB 0th index */
|
||||||
GEN7_VB0_BUFFER_ADDR_MOD_EN | /* Address Modify Enable */
|
GEN7_VB0_BUFFER_ADDR_MOD_EN | /* Address Modify Enable */
|
||||||
VERTEX_SIZE << VB0_BUFFER_PITCH_SHIFT);
|
VERTEX_SIZE << VB0_BUFFER_PITCH_SHIFT);
|
||||||
OUT_RELOC(batch->bo, I915_GEM_DOMAIN_VERTEX, 0, offset);
|
OUT_RELOC(batch->bo, I915_GEM_DOMAIN_VERTEX, 0, offset);
|
||||||
OUT_BATCH(0);
|
|
||||||
OUT_BATCH(3 * VERTEX_SIZE);
|
OUT_BATCH(3 * VERTEX_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -995,7 +994,7 @@ void gen8_render_copyfunc(struct intel_batchbuffer *batch,
|
|||||||
|
|
||||||
gen6_emit_drawing_rectangle(batch, dst);
|
gen6_emit_drawing_rectangle(batch, dst);
|
||||||
|
|
||||||
gen7_emit_vertex_buffer(batch, vertex_buffer);
|
gen8_emit_vertex_buffer(batch, vertex_buffer);
|
||||||
gen6_emit_vertex_elements(batch);
|
gen6_emit_vertex_elements(batch);
|
||||||
|
|
||||||
gen8_emit_vf_topology(batch);
|
gen8_emit_vf_topology(batch);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user