From 84f857bef79d66d229a001554719e9299ebe0881 Mon Sep 17 00:00:00 2001 From: Tim Rowley Date: Tue, 8 Mar 2016 11:22:54 -0600 Subject: 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 --- src/gallium/drivers/swr/swr_scratch.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gallium/drivers/swr/swr_scratch.cpp') 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 */ -- cgit v1.2.3