mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 17:36:11 +00:00
tests/bdw: gem_linear_blits
support gen8 style blits Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
This commit is contained in:
parent
adc5a41f2b
commit
d348022934
@ -56,7 +56,7 @@ static uint32_t linear[WIDTH*HEIGHT];
|
||||
static void
|
||||
copy(int fd, uint32_t dst, uint32_t src)
|
||||
{
|
||||
uint32_t batch[10];
|
||||
uint32_t batch[12];
|
||||
struct drm_i915_gem_relocation_entry reloc[2];
|
||||
struct drm_i915_gem_exec_object2 obj[3];
|
||||
struct drm_i915_gem_execbuffer2 exec;
|
||||
@ -72,9 +72,13 @@ copy(int fd, uint32_t dst, uint32_t src)
|
||||
batch[i++] = 0; /* dst x1,y1 */
|
||||
batch[i++] = (HEIGHT << 16) | WIDTH; /* dst x2,y2 */
|
||||
batch[i++] = 0; /* dst reloc */
|
||||
if (intel_gen(intel_get_drm_devid(fd)) >= 8)
|
||||
batch[i++] = 0;
|
||||
batch[i++] = 0; /* src x1,y1 */
|
||||
batch[i++] = WIDTH*4;
|
||||
batch[i++] = 0; /* src reloc */
|
||||
if (intel_gen(intel_get_drm_devid(fd)) >= 8)
|
||||
batch[i++] = 0;
|
||||
batch[i++] = MI_BATCH_BUFFER_END;
|
||||
batch[i++] = MI_NOOP;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user