llvmpipe: minor whitespace clean-up in lp_state_fs.h

Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17561>
This commit is contained in:
Brian Paul 2022-07-13 21:40:00 -06:00 committed by Marge Bot
parent fb6aaaf2c3
commit b66e567762
1 changed files with 7 additions and 4 deletions

View File

@ -146,7 +146,8 @@ static inline struct lp_image_static_state *
lp_fs_variant_key_images(struct lp_fragment_shader_variant_key *key) lp_fs_variant_key_images(struct lp_fragment_shader_variant_key *key)
{ {
return (struct lp_image_static_state *) return (struct lp_image_static_state *)
&(lp_fs_variant_key_samplers(key)[MAX2(key->nr_samplers, key->nr_sampler_views)]); &(lp_fs_variant_key_samplers(key)[MAX2(key->nr_samplers,
key->nr_sampler_views)]);
} }
/** doubly-linked list item */ /** doubly-linked list item */
@ -232,6 +233,7 @@ struct lp_fragment_shader
void void
llvmpipe_fs_analyse_nir(struct lp_fragment_shader *shader); llvmpipe_fs_analyse_nir(struct lp_fragment_shader *shader);
void void
llvmpipe_fs_analyse(struct lp_fragment_shader *shader, llvmpipe_fs_analyse(struct lp_fragment_shader *shader,
const struct tgsi_token *tokens); const struct tgsi_token *tokens);
@ -253,7 +255,6 @@ lp_debug_fs_variant(struct lp_fragment_shader_variant *variant);
const char * const char *
lp_debug_fs_kind(enum lp_fs_kind kind); lp_debug_fs_kind(enum lp_fs_kind kind);
void void
lp_linear_check_variant(struct lp_fragment_shader_variant *variant); lp_linear_check_variant(struct lp_fragment_shader_variant *variant);
@ -267,7 +268,8 @@ lp_fs_reference(struct llvmpipe_context *llvmpipe,
struct lp_fragment_shader *shader) struct lp_fragment_shader *shader)
{ {
struct lp_fragment_shader *old_ptr = *ptr; struct lp_fragment_shader *old_ptr = *ptr;
if (pipe_reference(old_ptr ? &(*ptr)->reference : NULL, shader ? &shader->reference : NULL)) { if (pipe_reference(old_ptr ? &(*ptr)->reference : NULL,
shader ? &shader->reference : NULL)) {
llvmpipe_destroy_fs(llvmpipe, old_ptr); llvmpipe_destroy_fs(llvmpipe, old_ptr);
} }
*ptr = shader; *ptr = shader;
@ -283,7 +285,8 @@ lp_fs_variant_reference(struct llvmpipe_context *llvmpipe,
struct lp_fragment_shader_variant *variant) struct lp_fragment_shader_variant *variant)
{ {
struct lp_fragment_shader_variant *old_ptr = *ptr; struct lp_fragment_shader_variant *old_ptr = *ptr;
if (pipe_reference(old_ptr ? &(*ptr)->reference : NULL, variant ? &variant->reference : NULL)) { if (pipe_reference(old_ptr ? &(*ptr)->reference : NULL,
variant ? &variant->reference : NULL)) {
llvmpipe_destroy_shader_variant(llvmpipe, old_ptr); llvmpipe_destroy_shader_variant(llvmpipe, old_ptr);
} }
*ptr = variant; *ptr = variant;