Path: blob/21.2-virgl/src/amd/common/gfx10_format_table.h
7178 views
/*1* Copyright © 2019 Advanced Micro Devices, Inc.2* All Rights Reserved.3*4* Permission is hereby granted, free of charge, to any person obtaining5* a copy of this software and associated documentation files (the6* "Software"), to deal in the Software without restriction, including7* without limitation the rights to use, copy, modify, merge, publish,8* distribute, sub license, and/or sell copies of the Software, and to9* permit persons to whom the Software is furnished to do so, subject to10* the following conditions:11*12* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,13* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES14* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND15* NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS, AUTHORS16* AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER17* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,18* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE19* USE OR OTHER DEALINGS IN THE SOFTWARE.20*21* The above copyright notice and this permission notice (including the22* next paragraph) shall be included in all copies or substantial portions23* of the Software.24*/2526#ifndef GFX10_FORMAT_TABLE_H27#define GFX10_FORMAT_TABLE_H2829#include "pipe/p_format.h"3031#include <stdbool.h>3233struct gfx10_format {34unsigned img_format : 9;3536/* Various formats are only supported with workarounds for vertex fetch,37* and some 32_32_32 formats are supported natively, but only for buffers38* (possibly with some image support, actually, but no filtering). */39bool buffers_only : 1;40};4142extern const struct gfx10_format gfx10_format_table[PIPE_FORMAT_COUNT];4344#endif /* GFX10_FORMAT_TABLE_H */454647