summaryrefslogtreecommitdiff
path: root/lib/mesa/src/gallium/auxiliary/util/u_upload_mgr.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-04-02 10:42:24 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-04-02 10:42:24 +0000
commita3f73acb9d2cdc62692af7ff93c51f910dff2d0d (patch)
tree303d205e8e6ed9676bdcbe006a402c23bf668f6c /lib/mesa/src/gallium/auxiliary/util/u_upload_mgr.c
parentf54e142455cb3c9d1662dae7e096a32a47e5409b (diff)
Merge Mesa 23.3.6
Diffstat (limited to 'lib/mesa/src/gallium/auxiliary/util/u_upload_mgr.c')
-rw-r--r--lib/mesa/src/gallium/auxiliary/util/u_upload_mgr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/mesa/src/gallium/auxiliary/util/u_upload_mgr.c b/lib/mesa/src/gallium/auxiliary/util/u_upload_mgr.c
index 1dcbff719..034c52978 100644
--- a/lib/mesa/src/gallium/auxiliary/util/u_upload_mgr.c
+++ b/lib/mesa/src/gallium/auxiliary/util/u_upload_mgr.c
@@ -46,7 +46,7 @@ struct u_upload_mgr {
enum pipe_resource_usage usage;
unsigned flags;
unsigned map_flags; /* Bitmask of PIPE_MAP_* flags. */
- boolean map_persistent; /* If persistent mappings are supported. */
+ bool map_persistent; /* If persistent mappings are supported. */
struct pipe_resource *buffer; /* Upload buffer. */
struct pipe_transfer *transfer; /* Transfer object for the upload buffer. */
@@ -116,13 +116,13 @@ u_upload_clone(struct pipe_context *pipe, struct u_upload_mgr *upload)
void
u_upload_disable_persistent(struct u_upload_mgr *upload)
{
- upload->map_persistent = FALSE;
+ upload->map_persistent = false;
upload->map_flags &= ~(PIPE_MAP_COHERENT | PIPE_MAP_PERSISTENT);
upload->map_flags |= PIPE_MAP_FLUSH_EXPLICIT;
}
static void
-upload_unmap_internal(struct u_upload_mgr *upload, boolean destroying)
+upload_unmap_internal(struct u_upload_mgr *upload, bool destroying)
{
if ((!destroying && upload->map_persistent) || !upload->transfer)
return;
@@ -143,7 +143,7 @@ upload_unmap_internal(struct u_upload_mgr *upload, boolean destroying)
void
u_upload_unmap(struct u_upload_mgr *upload)
{
- upload_unmap_internal(upload, FALSE);
+ upload_unmap_internal(upload, false);
}
@@ -151,7 +151,7 @@ static void
u_upload_release_buffer(struct u_upload_mgr *upload)
{
/* Unmap and unreference the upload buffer. */
- upload_unmap_internal(upload, TRUE);
+ upload_unmap_internal(upload, true);
if (upload->buffer_private_refcount) {
/* Subtract the remaining private references before unreferencing
* the buffer. The mega comment below explains it.