diff options
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_screen.c')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_screen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/virgl/virgl_screen.c b/src/gallium/drivers/virgl/virgl_screen.c index 65106dbb616..66cb6b7a219 100644 --- a/src/gallium/drivers/virgl/virgl_screen.c +++ b/src/gallium/drivers/virgl/virgl_screen.c @@ -82,10 +82,10 @@ virgl_get_param(struct pipe_screen *screen, enum pipe_cap param) return vscreen->caps.caps.v1.bset.mirror_clamp; case PIPE_CAP_TEXTURE_SWIZZLE: return 1; - case PIPE_CAP_MAX_TEXTURE_2D_LEVELS: + case PIPE_CAP_MAX_TEXTURE_2D_SIZE: if (vscreen->caps.caps.v2.max_texture_2d_size) - return 1 + util_logbase2(vscreen->caps.caps.v2.max_texture_2d_size); - return 15; /* 16K x 16K */ + return vscreen->caps.caps.v2.max_texture_2d_size; + return 16384; case PIPE_CAP_MAX_TEXTURE_3D_LEVELS: if (vscreen->caps.caps.v2.max_texture_3d_size) return 1 + util_logbase2(vscreen->caps.caps.v2.max_texture_3d_size); |