summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/draw/draw_pipe_pstipple.c
diff options
context:
space:
mode:
authorYonggang Luo <luoyonggang@gmail.com>2023-06-22 23:58:38 +0800
committerYonggang Luo <luoyonggang@gmail.com>2023-06-27 18:18:28 +0800
commit05b840521ab3e621d1664cd91d839914ddabd0db (patch)
tree52656050b3e24673b3c994b4791db1afa011d0d8 /src/gallium/auxiliary/draw/draw_pipe_pstipple.c
parent49e84fdad2b453460100ea9253015eec437f5405 (diff)
treewide: Replace the usage of TRUE/FALSE with true/false
this is a separate patch as it's won't affect the code style 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> Acked-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/auxiliary/draw/draw_pipe_pstipple.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_pipe_pstipple.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pipe_pstipple.c b/src/gallium/auxiliary/draw/draw_pipe_pstipple.c
index dec2a26e791..1dd40918cab 100644
--- a/src/gallium/auxiliary/draw/draw_pipe_pstipple.c
+++ b/src/gallium/auxiliary/draw/draw_pipe_pstipple.c
@@ -143,7 +143,7 @@ generate_pstip_fs(struct pstip_stage *pstip)
0,
wincoord_file);
if (pstip_fs.tokens == NULL)
- return FALSE;
+ return false;
} else {
pstip_fs.ir.nir = nir_shader_clone(NULL, orig_fs->ir.nir);
nir_lower_pstipple_fs(pstip_fs.ir.nir,
@@ -158,9 +158,9 @@ generate_pstip_fs(struct pstip_stage *pstip)
FREE((void *)pstip_fs.tokens);
if (!pstip->fs->pstip_fs)
- return FALSE;
+ return false;
- return TRUE;
+ return true;
}
@@ -174,12 +174,12 @@ bind_pstip_fragment_shader(struct pstip_stage *pstip)
struct draw_context *draw = pstip->stage.draw;
if (!pstip->fs->pstip_fs &&
!generate_pstip_fs(pstip))
- return FALSE;
+ return false;
- draw->suspend_flushing = TRUE;
+ draw->suspend_flushing = true;
pstip->driver_bind_fs_state(pstip->pipe, pstip->fs->pstip_fs);
- draw->suspend_flushing = FALSE;
- return TRUE;
+ draw->suspend_flushing = false;
+ return true;
}
@@ -220,7 +220,7 @@ pstip_first_tri(struct draw_stage *stage, struct prim_header *header)
assert(num_samplers <= PIPE_MAX_SAMPLERS);
- draw->suspend_flushing = TRUE;
+ draw->suspend_flushing = true;
pstip->driver_bind_sampler_states(pipe, PIPE_SHADER_FRAGMENT, 0,
num_samplers, pstip->state.samplers);
@@ -229,7 +229,7 @@ pstip_first_tri(struct draw_stage *stage, struct prim_header *header)
num_sampler_views, 0, false,
pstip->state.sampler_views);
- draw->suspend_flushing = FALSE;
+ draw->suspend_flushing = false;
/* now really draw first triangle */
stage->tri = draw_pipe_passthrough_tri;
@@ -248,7 +248,7 @@ pstip_flush(struct draw_stage *stage, unsigned flags)
stage->next->flush(stage->next, flags);
/* restore original frag shader, texture, sampler state */
- draw->suspend_flushing = TRUE;
+ draw->suspend_flushing = true;
pstip->driver_bind_fs_state(pipe, pstip->fs ? pstip->fs->driver_fs : NULL);
pstip->driver_bind_sampler_states(pipe, PIPE_SHADER_FRAGMENT, 0,
@@ -259,7 +259,7 @@ pstip_flush(struct draw_stage *stage, unsigned flags)
pstip->num_sampler_views, 0, false,
pstip->state.sampler_views);
- draw->suspend_flushing = FALSE;
+ draw->suspend_flushing = false;
}
@@ -513,11 +513,11 @@ draw_install_pstipple_stage(struct draw_context *draw,
pipe->set_sampler_views = pstip_set_sampler_views;
pipe->set_polygon_stipple = pstip_set_polygon_stipple;
- return TRUE;
+ return true;
fail:
if (pstip)
pstip->stage.destroy(&pstip->stage);
- return FALSE;
+ return false;
}