radv: Include gfx10_format_table.h only from a single source file.
The radeonsi variant has everything in the header, so lets not include it everywhere. Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5291>
This commit is contained in:
parent
b351a50763
commit
560f095dd5
|
@ -34,6 +34,17 @@
|
||||||
#include "util/debug.h"
|
#include "util/debug.h"
|
||||||
#include "util/u_atomic.h"
|
#include "util/u_atomic.h"
|
||||||
|
|
||||||
|
struct gfx10_format {
|
||||||
|
unsigned img_format:9;
|
||||||
|
|
||||||
|
/* Various formats are only supported with workarounds for vertex fetch,
|
||||||
|
* and some 32_32_32 formats are supported natively, but only for buffers
|
||||||
|
* (possibly with some image support, actually, but no filtering). */
|
||||||
|
bool buffers_only:1;
|
||||||
|
};
|
||||||
|
|
||||||
|
#include "gfx10_format_table.h"
|
||||||
|
|
||||||
static unsigned
|
static unsigned
|
||||||
radv_choose_tiling(struct radv_device *device,
|
radv_choose_tiling(struct radv_device *device,
|
||||||
const VkImageCreateInfo *pCreateInfo,
|
const VkImageCreateInfo *pCreateInfo,
|
||||||
|
|
|
@ -95,18 +95,6 @@ typedef uint32_t xcb_window_t;
|
||||||
#define RADV_SUPPORT_ANDROID_HARDWARE_BUFFER 0
|
#define RADV_SUPPORT_ANDROID_HARDWARE_BUFFER 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
struct gfx10_format {
|
|
||||||
unsigned img_format:9;
|
|
||||||
|
|
||||||
/* Various formats are only supported with workarounds for vertex fetch,
|
|
||||||
* and some 32_32_32 formats are supported natively, but only for buffers
|
|
||||||
* (possibly with some image support, actually, but no filtering). */
|
|
||||||
bool buffers_only:1;
|
|
||||||
};
|
|
||||||
|
|
||||||
#include "gfx10_format_table.h"
|
|
||||||
|
|
||||||
enum radv_secure_compile_type {
|
enum radv_secure_compile_type {
|
||||||
RADV_SC_TYPE_INIT_SUCCESS,
|
RADV_SC_TYPE_INIT_SUCCESS,
|
||||||
RADV_SC_TYPE_INIT_FAILURE,
|
RADV_SC_TYPE_INIT_FAILURE,
|
||||||
|
|
Loading…
Reference in New Issue