ac/llvm: move AC_FETCH_FORMAT to non-LLVM code
While we are it, give it a name. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7065>
This commit is contained in:

committed by
Marge Bot

parent
ab067ad6a6
commit
5000c344cc
@@ -61,6 +61,22 @@ struct ac_spi_color_formats {
|
||||
unsigned blend_alpha : 8;
|
||||
};
|
||||
|
||||
/* For ac_build_fetch_format.
|
||||
*
|
||||
* Note: FLOAT must be 0 (used for convenience of encoding in radeonsi).
|
||||
*/
|
||||
enum ac_fetch_format
|
||||
{
|
||||
AC_FETCH_FORMAT_FLOAT = 0,
|
||||
AC_FETCH_FORMAT_FIXED,
|
||||
AC_FETCH_FORMAT_UNORM,
|
||||
AC_FETCH_FORMAT_SNORM,
|
||||
AC_FETCH_FORMAT_USCALED,
|
||||
AC_FETCH_FORMAT_SSCALED,
|
||||
AC_FETCH_FORMAT_UINT,
|
||||
AC_FETCH_FORMAT_SINT,
|
||||
};
|
||||
|
||||
unsigned ac_get_spi_shader_z_format(bool writes_z, bool writes_stencil, bool writes_samplemask);
|
||||
|
||||
unsigned ac_get_cb_shader_mask(unsigned spi_shader_col_format);
|
||||
|
@@ -281,21 +281,6 @@ LLVMValueRef ac_build_raw_tbuffer_load(struct ac_llvm_context *ctx, LLVMValueRef
|
||||
LLVMValueRef immoffset, unsigned num_channels, unsigned dfmt,
|
||||
unsigned nfmt, unsigned cache_policy, bool can_speculate);
|
||||
|
||||
/* For ac_build_fetch_format.
|
||||
*
|
||||
* Note: FLOAT must be 0 (used for convenience of encoding in radeonsi).
|
||||
*/
|
||||
enum
|
||||
{
|
||||
AC_FETCH_FORMAT_FLOAT = 0,
|
||||
AC_FETCH_FORMAT_FIXED,
|
||||
AC_FETCH_FORMAT_UNORM,
|
||||
AC_FETCH_FORMAT_SNORM,
|
||||
AC_FETCH_FORMAT_USCALED,
|
||||
AC_FETCH_FORMAT_SSCALED,
|
||||
AC_FETCH_FORMAT_UINT,
|
||||
AC_FETCH_FORMAT_SINT,
|
||||
};
|
||||
|
||||
LLVMValueRef ac_build_opencoded_load_format(struct ac_llvm_context *ctx, unsigned log_size,
|
||||
unsigned num_channels, unsigned format, bool reverse,
|
||||
|
Reference in New Issue
Block a user