mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-11 01:46:14 +00:00
gem_pipe_control_store_loop: BDW update
I've opted to not use the PIPE_CONTROL w/a for now. I am unclear if it is actually required (the test does pass). Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
This commit is contained in:
parent
40b586188c
commit
672911d714
@ -112,6 +112,21 @@ intel_batchbuffer_require_space(struct intel_batchbuffer *batch,
|
||||
} \
|
||||
} while(0)
|
||||
|
||||
#define COLOR_BLIT_COPY_BATCH_START(devid, flags) do { \
|
||||
if (intel_gen(devid) >= 8) { \
|
||||
BEGIN_BATCH(8); \
|
||||
OUT_BATCH(MI_NOOP); \
|
||||
OUT_BATCH(XY_COLOR_BLT_CMD_NOLEN | 0x5 | \
|
||||
COLOR_BLT_WRITE_ALPHA | \
|
||||
XY_COLOR_BLT_WRITE_RGB); \
|
||||
} else { \
|
||||
BEGIN_BATCH(6); \
|
||||
OUT_BATCH(XY_COLOR_BLT_CMD_NOLEN | 0x4 | \
|
||||
COLOR_BLT_WRITE_ALPHA | \
|
||||
XY_COLOR_BLT_WRITE_RGB); \
|
||||
} \
|
||||
} while(0)
|
||||
|
||||
#define BLIT_RELOC_UDW(devid) do { \
|
||||
if (intel_gen(devid) >= 8) { \
|
||||
OUT_BATCH(0); \
|
||||
|
@ -2709,7 +2709,8 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#define COLOR_BLT_WRITE_ALPHA (1<<21)
|
||||
#define COLOR_BLT_WRITE_RGB (1<<20)
|
||||
|
||||
#define XY_COLOR_BLT_CMD ((2<<29)|(0x50<<22)|(0x4))
|
||||
#define XY_COLOR_BLT_CMD_NOLEN ((2<<29)|(0x50<<22))
|
||||
#define XY_COLOR_BLT_CMD (XY_COLOR_BLT_CMD_NOLEN|(0x4))
|
||||
#define XY_COLOR_BLT_WRITE_ALPHA (1<<21)
|
||||
#define XY_COLOR_BLT_WRITE_RGB (1<<20)
|
||||
#define XY_COLOR_BLT_TILED (1<<11)
|
||||
|
@ -76,8 +76,7 @@ store_pipe_control_loop(bool preuse_buffer)
|
||||
igt_assert(target_bo);
|
||||
|
||||
if (preuse_buffer) {
|
||||
BEGIN_BATCH(6);
|
||||
OUT_BATCH(XY_COLOR_BLT_CMD | COLOR_BLT_WRITE_ALPHA | XY_COLOR_BLT_WRITE_RGB);
|
||||
COLOR_BLIT_COPY_BATCH_START(devid, 0);
|
||||
OUT_BATCH((3 << 24) | (0xf0 << 16) | 64);
|
||||
OUT_BATCH(0);
|
||||
OUT_BATCH(1 << 16 | 1);
|
||||
@ -90,6 +89,7 @@ store_pipe_control_loop(bool preuse_buffer)
|
||||
OUT_RELOC(target_bo,
|
||||
I915_GEM_DOMAIN_RENDER, I915_GEM_DOMAIN_RENDER,
|
||||
0);
|
||||
BLIT_RELOC_UDW(devid);
|
||||
OUT_BATCH(0xdeadbeef);
|
||||
ADVANCE_BATCH();
|
||||
|
||||
@ -101,7 +101,18 @@ store_pipe_control_loop(bool preuse_buffer)
|
||||
/* gem_storedw_batches_loop.c is a bit overenthusiastic with
|
||||
* creating new batchbuffers - with buffer reuse disabled, the
|
||||
* support code will do that for us. */
|
||||
if (intel_gen(devid) >= 6) {
|
||||
if (intel_gen(devid) >= 8) {
|
||||
BEGIN_BATCH(5);
|
||||
OUT_BATCH(GFX_OP_PIPE_CONTROL + 1);
|
||||
OUT_BATCH(PIPE_CONTROL_WRITE_IMMEDIATE);
|
||||
OUT_RELOC(target_bo,
|
||||
I915_GEM_DOMAIN_INSTRUCTION, I915_GEM_DOMAIN_INSTRUCTION,
|
||||
PIPE_CONTROL_GLOBAL_GTT);
|
||||
BLIT_RELOC_UDW(devid);
|
||||
OUT_BATCH(val); /* write data */
|
||||
ADVANCE_BATCH();
|
||||
|
||||
} else if (intel_gen(devid) >= 6) {
|
||||
/* work-around hw issue, see intel_emit_post_sync_nonzero_flush
|
||||
* in mesa sources. */
|
||||
BEGIN_BATCH(4);
|
||||
|
Loading…
x
Reference in New Issue
Block a user