r300: re-format using clang-format

No manual changes here, this is simply running
$ ninja -C build/ clang-format

Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com>
Reviewed-by: Pavel Ondračka <pavel.ondracka@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37224>
This commit is contained in:
Christian Gmeiner 2025-09-08 13:06:51 +02:00 committed by Marge Bot
parent 92e329ba5a
commit 72ba6bbbe3
13 changed files with 88 additions and 83 deletions

View file

@ -11,8 +11,6 @@
#include "compiler/nir/nir_worklist.h" #include "compiler/nir/nir_worklist.h"
#include "compiler/radeon_code.h" #include "compiler/radeon_code.h"
#include "compiler/radeon_program_constants.h" #include "compiler/radeon_program_constants.h"
#include "r300_nir.h"
#include "r300_screen.h"
#include "pipe/p_screen.h" #include "pipe/p_screen.h"
#include "pipe/p_state.h" #include "pipe/p_state.h"
#include "tgsi/tgsi_dump.h" #include "tgsi/tgsi_dump.h"

View file

@ -20,7 +20,9 @@
struct rc_swizzle_caps; struct rc_swizzle_caps;
enum rc_program_type { RC_VERTEX_PROGRAM, RC_FRAGMENT_PROGRAM, RC_NUM_PROGRAM_TYPES }; enum rc_program_type { RC_VERTEX_PROGRAM,
RC_FRAGMENT_PROGRAM,
RC_NUM_PROGRAM_TYPES };
struct radeon_compiler { struct radeon_compiler {
struct memory_pool Pool; struct memory_pool Pool;

View file

@ -103,7 +103,8 @@ struct rc_sub_instruction {
rc_omod_op Omod; rc_omod_op Omod;
}; };
typedef enum { RC_INSTRUCTION_NORMAL = 0, RC_INSTRUCTION_PAIR } rc_instruction_type; typedef enum { RC_INSTRUCTION_NORMAL = 0,
RC_INSTRUCTION_PAIR } rc_instruction_type;
struct rc_instruction { struct rc_instruction {
struct rc_instruction *Prev; struct rc_instruction *Prev;

View file

@ -138,7 +138,9 @@ is_swizzle_inline_constant(rc_swizzle swizzle)
#define RC_MASK_XYZW (RC_MASK_X | RC_MASK_Y | RC_MASK_Z | RC_MASK_W) #define RC_MASK_XYZW (RC_MASK_X | RC_MASK_Y | RC_MASK_Z | RC_MASK_W)
/*@}*/ /*@}*/
typedef enum { RC_ALURESULT_NONE = 0, RC_ALURESULT_X, RC_ALURESULT_W } rc_write_aluresult; typedef enum { RC_ALURESULT_NONE = 0,
RC_ALURESULT_X,
RC_ALURESULT_W } rc_write_aluresult;
typedef enum { typedef enum {
RC_PRESUB_NONE = 0, RC_PRESUB_NONE = 0,
@ -186,6 +188,8 @@ rc_presubtract_src_reg_count(rc_presubtract_op op)
#define RC_SOURCE_RGB 0x1 #define RC_SOURCE_RGB 0x1
#define RC_SOURCE_ALPHA 0x2 #define RC_SOURCE_ALPHA 0x2
typedef enum { RC_PRED_DISABLED, RC_PRED_SET, RC_PRED_INV } rc_predicate_mode; typedef enum { RC_PRED_DISABLED,
RC_PRED_SET,
RC_PRED_INV } rc_predicate_mode;
#endif /* RADEON_PROGRAM_CONSTANTS_H */ #endif /* RADEON_PROGRAM_CONSTANTS_H */