summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_state_fs.c
diff options
context:
space:
mode:
authorYonggang Luo <luoyonggang@gmail.com>2023-06-22 23:32:13 +0800
committerYonggang Luo <luoyonggang@gmail.com>2023-06-27 18:18:28 +0800
commit49e84fdad2b453460100ea9253015eec437f5405 (patch)
tree58a708b668960be9a19a5a68b9b487f5d5bf16c1 /src/gallium/drivers/llvmpipe/lp_state_fs.c
parent7b45a0bd666f54c3b5497ea0db19b5ed2db7dd02 (diff)
treewide: style fixes after replace usage of boolean to bool
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Acked-by: David Heidelberg <david.heidelberg@collabora.com> Acked-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23577>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_state_fs.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_state_fs.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c
index 462d341652c..da6f4a5e996 100644
--- a/src/gallium/drivers/llvmpipe/lp_state_fs.c
+++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c
@@ -675,10 +675,10 @@ generate_fs_loop(struct gallivm_state *gallivm,
* code since tests tend to take another codepath than real shaders.
*/
bool simple_shader = (shader->info.base.file_count[TGSI_FILE_SAMPLER] == 0 &&
- shader->info.base.num_inputs < 3 &&
- shader->info.base.num_instructions < 8) && 0;
+ shader->info.base.num_inputs < 3 &&
+ shader->info.base.num_instructions < 8) && 0;
const bool dual_source_blend = key->blend.rt[0].blend_enable &&
- util_blend_state_is_dual(&key->blend, 0);
+ util_blend_state_is_dual(&key->blend, 0);
const bool post_depth_coverage = shader->info.base.properties[TGSI_PROPERTY_FS_POST_DEPTH_COVERAGE];
struct lp_bld_tgsi_system_values system_values;
@@ -3135,7 +3135,7 @@ generate_fragment(struct llvmpipe_context *lp,
LLVMValueRef facing;
bool cbuf0_write_all;
const bool dual_source_blend = key->blend.rt[0].blend_enable &&
- util_blend_state_is_dual(&key->blend, 0);
+ util_blend_state_is_dual(&key->blend, 0);
assert(lp_native_vector_width / 32 >= 4);
@@ -3486,9 +3486,9 @@ generate_fragment(struct llvmpipe_context *lp,
LLVMValueRef index = lp_build_const_int32(gallivm, cbuf);
bool do_branch = ((key->depth.enabled
- || key->stencil[0].enabled
- || key->alpha.enabled)
- && !shader->info.base.uses_kill);
+ || key->stencil[0].enabled
+ || key->alpha.enabled)
+ && !shader->info.base.uses_kill);
color_ptr = LLVMBuildLoad2(builder, int8p_type,
LLVMBuildGEP2(builder, int8p_type, color_ptr_ptr,
@@ -4543,7 +4543,7 @@ make_variant_key(struct llvmpipe_context *lp,
format_desc->swizzle[3] == format_desc->swizzle[0]) {
// Doesn't cover mixed snorm/unorm but can't render to them anyway
bool clamped_zero = !util_format_is_float(format) &&
- !util_format_is_snorm(format);
+ !util_format_is_snorm(format);
blend_rt->rgb_src_factor =
force_dst_alpha_one(blend_rt->rgb_src_factor, clamped_zero);
blend_rt->rgb_dst_factor =