tests: vrend_transfer put some limits on the texture sizes

Otherwise the underlying hardware might not be able to handle the tests.

v2: Split patch to remove chunk that changes the verbosity (Emil)

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
macos/master
Gert Wollny 5 years ago
parent 57feaddb3e
commit e01683ef43
  1. 24
      tests/test_virgl_transfer.c

@ -547,7 +547,12 @@ static void get_resource_args(enum pipe_texture_target target, bool invalid,
args->flags = 0; args->flags = 0;
if (large_flags & LARGE_FLAG_WIDTH) if (large_flags & LARGE_FLAG_WIDTH)
args->width = 65536*2; if (args->target == PIPE_BUFFER)
args->width = 65536*2;
else if (args->target == PIPE_TEXTURE_3D)
args->width = 1024;
else
args->width = 4096;
else else
args->width = 50; args->width = 50;
args->height = args->depth = args->array_size = 1; args->height = args->depth = args->array_size = 1;
@ -555,6 +560,7 @@ static void get_resource_args(enum pipe_texture_target target, bool invalid,
switch (target) { switch (target) {
case PIPE_TEXTURE_CUBE_ARRAY: case PIPE_TEXTURE_CUBE_ARRAY:
args->array_size = 12; args->array_size = 12;
args->height = args->width;
break; break;
case PIPE_TEXTURE_1D_ARRAY: case PIPE_TEXTURE_1D_ARRAY:
case PIPE_TEXTURE_2D_ARRAY: case PIPE_TEXTURE_2D_ARRAY:
@ -565,6 +571,7 @@ static void get_resource_args(enum pipe_texture_target target, bool invalid,
break; break;
case PIPE_TEXTURE_CUBE: case PIPE_TEXTURE_CUBE:
args->array_size = 6; args->array_size = 6;
args->height = args->width;
break; break;
default: default:
break; break;
@ -574,11 +581,18 @@ static void get_resource_args(enum pipe_texture_target target, bool invalid,
case PIPE_BUFFER: case PIPE_BUFFER:
case PIPE_TEXTURE_1D: case PIPE_TEXTURE_1D:
case PIPE_TEXTURE_1D_ARRAY: case PIPE_TEXTURE_1D_ARRAY:
break; case PIPE_TEXTURE_CUBE:
case PIPE_TEXTURE_CUBE_ARRAY:
break;
default: default:
if (large_flags & LARGE_FLAG_HEIGHT) if (large_flags & LARGE_FLAG_HEIGHT) {
args->height = 64000; if (args->target == PIPE_BUFFER)
else args->height = 64000;
else if (args->target == PIPE_TEXTURE_3D)
args->height = 1024;
else
args->height = 4096;
} else
args->height = 50; args->height = 50;
break; break;
} }

Loading…
Cancel
Save