summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/virgl/virgl_hw.h
diff options
context:
space:
mode:
authorErik Faye-Lund <[email protected]>2018-08-14 13:06:02 +0100
committerErik Faye-Lund <[email protected]>2018-08-15 18:48:16 +0200
commit98b3b6367a919990bc2832183fdcf285ffeb4b8a (patch)
treef8d564c45584a7982c2aae86c2f5a3922ce90523 /src/gallium/drivers/virgl/virgl_hw.h
parent825aaeae3942effc29aba6ae182146c0f97d277c (diff)
virgl: report actual max-texture sizes
Instead of doing conservative guesses, we should report the max levels based on the max sizes we get from GL on the host. Signed-off-by: Erik Faye-Lund <[email protected]> Reviewed-by: Jakob Bornecrantz <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_hw.h')
-rw-r--r--src/gallium/drivers/virgl/virgl_hw.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/virgl/virgl_hw.h b/src/gallium/drivers/virgl/virgl_hw.h
index b56f554b001..787452d3287 100644
--- a/src/gallium/drivers/virgl/virgl_hw.h
+++ b/src/gallium/drivers/virgl/virgl_hw.h
@@ -347,6 +347,9 @@ struct virgl_caps_v2 {
uint32_t max_compute_shared_memory_size;
uint32_t max_compute_grid_size[3];
uint32_t max_compute_block_size[3];
+ uint32_t max_texture_2d_size;
+ uint32_t max_texture_3d_size;
+ uint32_t max_texture_cube_size;
};
union virgl_caps {