virgl: Enable mixed color FBO attachemnets only when the host supports
it Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Reviewed-by: Elie Tournier <elie.tournier@collabora.com>
This commit is contained in:
parent
338dacc341
commit
2ee197d6e8
|
@ -235,6 +235,7 @@ enum virgl_formats {
|
|||
#define VIRGL_CAP_SRGB_WRITE_CONTROL (1 << 15)
|
||||
#define VIRGL_CAP_QBO (1 << 16)
|
||||
#define VIRGL_CAP_TRANSFER (1 << 17)
|
||||
#define VIRGL_CAP_FBO_MIXED_COLOR_FORMATS (1 << 18)
|
||||
|
||||
/* virgl bind flags - these are compatible with mesa 10.5 gallium.
|
||||
* but are fixed, no other should be passed to virgl either.
|
||||
|
|
|
@ -144,7 +144,7 @@ virgl_get_param(struct pipe_screen *screen, enum pipe_cap param)
|
|||
case PIPE_CAP_VERTEX_COLOR_CLAMPED:
|
||||
return vscreen->caps.caps.v1.bset.color_clamping;
|
||||
case PIPE_CAP_MIXED_COLORBUFFER_FORMATS:
|
||||
return 1;
|
||||
return vscreen->caps.caps.v2.capability_bits & VIRGL_CAP_FBO_MIXED_COLOR_FORMATS;
|
||||
case PIPE_CAP_GLSL_FEATURE_LEVEL:
|
||||
return vscreen->caps.caps.v1.glsl_level;
|
||||
case PIPE_CAP_GLSL_FEATURE_LEVEL_COMPATIBILITY:
|
||||
|
|
Loading…
Reference in New Issue