mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 17:36:11 +00:00
tests/vgem_fb_test: Use untiling for correctly rendering
This is needed because i915 (new) userspace dma-buf mmap is using CPU mapping TODO: Render buffer actually has to be separate from the scanout one.
This commit is contained in:
parent
768c0a133d
commit
e38c564176
@ -376,8 +376,7 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
for (i = 0; i < BUFFERS; ++i) {
|
for (i = 0; i < BUFFERS; ++i) {
|
||||||
ctx.gbm_buffer[i] = gbm_bo_create(ctx.drm_gbm,
|
ctx.gbm_buffer[i] = gbm_bo_create(ctx.drm_gbm,
|
||||||
ctx.mode->hdisplay, ctx.mode->vdisplay, GBM_BO_FORMAT_XRGB8888,
|
ctx.mode->hdisplay, ctx.mode->vdisplay, GBM_BO_FORMAT_XRGB8888, 0);
|
||||||
GBM_BO_USE_SCANOUT | GBM_BO_USE_RENDERING);
|
|
||||||
|
|
||||||
if (!ctx.gbm_buffer[i]) {
|
if (!ctx.gbm_buffer[i]) {
|
||||||
fprintf(stderr, "failed to create buffer object\n");
|
fprintf(stderr, "failed to create buffer object\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user