summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/swr_scratch.cpp
diff options
context:
space:
mode:
authorTim Rowley <[email protected]>2016-03-08 11:22:54 -0600
committerTim Rowley <[email protected]>2016-03-10 11:20:58 -0600
commit84f857bef79d66d229a001554719e9299ebe0881 (patch)
tree95cd98ee4884568b59401cbed1b5c8767247ece5 /src/gallium/drivers/swr/swr_scratch.cpp
parentdad3e5f4ef821b935777b44c7a379d84e3c365e3 (diff)
gallium/swr: remove use of BYTE from swr driver
Remove use of a win32-style type leaked from the swr rasterizer. Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/swr_scratch.cpp')
-rw-r--r--src/gallium/drivers/swr/swr_scratch.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/swr/swr_scratch.cpp b/src/gallium/drivers/swr/swr_scratch.cpp
index e6c448cb9e7..28eb2acb910 100644
--- a/src/gallium/drivers/swr/swr_scratch.cpp
+++ b/src/gallium/drivers/swr/swr_scratch.cpp
@@ -58,14 +58,14 @@ swr_copy_to_scratch_space(struct swr_context *ctx,
}
if (!space->base) {
- space->base = (BYTE *)align_malloc(space->current_size, 4);
+ space->base = (uint8_t *)align_malloc(space->current_size, 4);
space->head = (void *)space->base;
}
}
/* Wrap */
- if (((BYTE *)space->head + size)
- >= ((BYTE *)space->base + space->current_size)) {
+ if (((uint8_t *)space->head + size)
+ >= ((uint8_t *)space->base + space->current_size)) {
/*
* TODO XXX: Should add a fence on wrap. Assumption is that
* current_space >> size, and there are at least MAX_DRAWS_IN_FLIGHT
@@ -78,7 +78,7 @@ swr_copy_to_scratch_space(struct swr_context *ctx,
}
ptr = space->head;
- space->head = (BYTE *)space->head + size;
+ space->head = (uint8_t *)space->head + size;
}
/* Copy user_buffer to scratch */