util: Move pipe_color_union from p_defines.h into u_formats.h
As pipe_color_union is used in vulkan drivers, so decouple it from gallium by this move Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19522>
This commit is contained in:
@@ -1214,13 +1214,6 @@ enum pipe_query_flags
|
||||
PIPE_QUERY_PARTIAL = (1 << 1),
|
||||
};
|
||||
|
||||
union pipe_color_union
|
||||
{
|
||||
float f[4];
|
||||
int i[4];
|
||||
unsigned int ui[4];
|
||||
};
|
||||
|
||||
enum pipe_driver_query_type
|
||||
{
|
||||
PIPE_DRIVER_QUERY_TYPE_UINT64,
|
||||
|
||||
@@ -676,6 +676,13 @@ enum pipe_swizzle {
|
||||
#define PIPE_MASK_ZS 0x30
|
||||
#define PIPE_MASK_RGBAZS (PIPE_MASK_RGBA|PIPE_MASK_ZS)
|
||||
|
||||
union pipe_color_union
|
||||
{
|
||||
float f[4];
|
||||
int i[4];
|
||||
unsigned int ui[4];
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user