diff options
author | Rob Clark <robdclark@chromium.org> | 2021-04-14 08:04:06 -0700 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-04-14 19:52:21 +0000 |
commit | 2d439343ea1aee146d4ce32800992cd389bd505d (patch) | |
tree | 630b3a941f1586d8a2d4d6c887c1ad04edc3cf2a /src/gallium/drivers/freedreno/a2xx/fd2_program.h | |
parent | fdcae5b5b8925e00779ce1b4d499ca71907b601f (diff) |
freedreno: Re-indent
clang-format -fallback-style=none --style=file -i src/gallium/drivers/freedreno/*.[ch] src/gallium/drivers/freedreno/*/*.[ch]
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8883>
Diffstat (limited to 'src/gallium/drivers/freedreno/a2xx/fd2_program.h')
-rw-r--r-- | src/gallium/drivers/freedreno/a2xx/fd2_program.h | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/src/gallium/drivers/freedreno/a2xx/fd2_program.h b/src/gallium/drivers/freedreno/a2xx/fd2_program.h index fdca2a2aebc..0dbe34210bf 100644 --- a/src/gallium/drivers/freedreno/a2xx/fd2_program.h +++ b/src/gallium/drivers/freedreno/a2xx/fd2_program.h @@ -31,39 +31,39 @@ #include "freedreno_context.h" -#include "ir2.h" #include "disasm.h" +#include "ir2.h" struct fd2_shader_stateobj { - nir_shader *nir; - gl_shader_stage type; - bool is_a20x; + nir_shader *nir; + gl_shader_stage type; + bool is_a20x; - /* note: using same set of immediates for all variants - * it doesn't matter, other than the slightly larger command stream - */ - unsigned first_immediate; /* const reg # of first immediate */ - unsigned num_immediates; - struct { - uint32_t val[4]; - unsigned ncomp; - } immediates[64]; + /* note: using same set of immediates for all variants + * it doesn't matter, other than the slightly larger command stream + */ + unsigned first_immediate; /* const reg # of first immediate */ + unsigned num_immediates; + struct { + uint32_t val[4]; + unsigned ncomp; + } immediates[64]; - bool writes_psize; - bool need_param; - bool has_kill; + bool writes_psize; + bool need_param; + bool has_kill; - /* note: - * fragment shader only has one variant - * first vertex shader variant is always binning shader - * we should use a dynamic array but in normal case there is - * only 2 variants (and 3 sometimes with GALLIUM_HUD) - */ - struct ir2_shader_variant variant[8]; + /* note: + * fragment shader only has one variant + * first vertex shader variant is always binning shader + * we should use a dynamic array but in normal case there is + * only 2 variants (and 3 sometimes with GALLIUM_HUD) + */ + struct ir2_shader_variant variant[8]; }; void fd2_program_emit(struct fd_context *ctx, struct fd_ringbuffer *ring, - struct fd_program_stateobj *prog) assert_dt; + struct fd_program_stateobj *prog) assert_dt; void fd2_prog_init(struct pipe_context *pctx); |