mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-08 16:36:14 +00:00
tests/kms_fbc_crc: make the blt test draw the same pattern
... as the other drawing tests: single white pixel at top/left of the screen, instead of painting the whole screen blue. This will make it much easier to fix the CRC checking code. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
This commit is contained in:
parent
5d3c2a6353
commit
b3faeb16fe
@ -98,6 +98,7 @@ static void fill_blt(data_t *data,
|
|||||||
struct intel_batchbuffer *batch;
|
struct intel_batchbuffer *batch;
|
||||||
unsigned flags;
|
unsigned flags;
|
||||||
int pitch;
|
int pitch;
|
||||||
|
uint32_t pixel = color | (color << 8) | (color << 16) | (color << 24);
|
||||||
|
|
||||||
batch = intel_batchbuffer_alloc(data->bufmgr, data->devid);
|
batch = intel_batchbuffer_alloc(data->bufmgr, data->devid);
|
||||||
igt_assert(batch);
|
igt_assert(batch);
|
||||||
@ -113,9 +114,9 @@ static void fill_blt(data_t *data,
|
|||||||
COLOR_BLIT_COPY_BATCH_START(flags);
|
COLOR_BLIT_COPY_BATCH_START(flags);
|
||||||
OUT_BATCH(3 << 24 | 0xf0 << 16 | pitch);
|
OUT_BATCH(3 << 24 | 0xf0 << 16 | pitch);
|
||||||
OUT_BATCH(0);
|
OUT_BATCH(0);
|
||||||
OUT_BATCH(fb->height << 16 | fb->width);
|
OUT_BATCH(1 << 16 | 1);
|
||||||
OUT_RELOC_FENCED(dst, I915_GEM_DOMAIN_RENDER, I915_GEM_DOMAIN_RENDER, 0);
|
OUT_RELOC_FENCED(dst, I915_GEM_DOMAIN_RENDER, I915_GEM_DOMAIN_RENDER, 0);
|
||||||
OUT_BATCH(color);
|
OUT_BATCH(pixel);
|
||||||
ADVANCE_BATCH();
|
ADVANCE_BATCH();
|
||||||
|
|
||||||
intel_batchbuffer_flush(batch);
|
intel_batchbuffer_flush(batch);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user