mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
radv: Disable subsampled formats.
Broken on Polaris and since I discovered NV12 is not subsampled, but a 2-plane format I decided I don't really care. Work to do to re-enable: 1) Figure out which devices support it natively. 2) Write some software emulation for the others. Fixes:52c1adda21"radv: Add ycbcr format features." Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> (cherry picked from commit5cbe12ad1b)
This commit is contained in:
parent
6e52daa18c
commit
ed0d4eaa4c
1 changed files with 2 additions and 1 deletions
|
|
@ -635,7 +635,8 @@ radv_physical_device_get_format_properties(struct radv_physical_device *physical
|
||||||
const struct vk_format_description *desc = vk_format_description(format);
|
const struct vk_format_description *desc = vk_format_description(format);
|
||||||
bool blendable;
|
bool blendable;
|
||||||
bool scaled = false;
|
bool scaled = false;
|
||||||
if (!desc) {
|
/* TODO: implement some software emulation of SUBSAMPLED formats. */
|
||||||
|
if (!desc || desc->layout == VK_FORMAT_LAYOUT_SUBSAMPLED) {
|
||||||
out_properties->linearTilingFeatures = linear;
|
out_properties->linearTilingFeatures = linear;
|
||||||
out_properties->optimalTilingFeatures = tiled;
|
out_properties->optimalTilingFeatures = tiled;
|
||||||
out_properties->bufferFeatures = buffer;
|
out_properties->bufferFeatures = buffer;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue