summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/swr_screen.cpp
diff options
context:
space:
mode:
authorTim Rowley <[email protected]>2016-05-06 12:49:23 -0600
committerTim Rowley <[email protected]>2016-05-19 16:26:38 -0500
commit4997169779069692c0e64df2dfb89185ae48f193 (patch)
tree6e12a46c3cd5b04b1901aa5ae4577b68f05dba00 /src/gallium/drivers/swr/swr_screen.cpp
parent2e4ef235231dbaee0c331f35c69a85404507ac1e (diff)
swr: [rasterizer] rename _aligned_malloc to AlignedMalloc
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/swr_screen.cpp')
-rw-r--r--src/gallium/drivers/swr/swr_screen.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/swr/swr_screen.cpp b/src/gallium/drivers/swr/swr_screen.cpp
index ce880ec6386..196f6dc801b 100644
--- a/src/gallium/drivers/swr/swr_screen.cpp
+++ b/src/gallium/drivers/swr/swr_screen.cpp
@@ -559,7 +559,7 @@ swr_texture_layout(struct swr_screen *screen,
res->swr.pitch = res->row_stride[0];
if (allocate) {
- res->swr.pBaseAddress = (uint8_t *)_aligned_malloc(total_size, 64);
+ res->swr.pBaseAddress = (uint8_t *)AlignedMalloc(total_size, 64);
if (res->has_depth && res->has_stencil) {
SWR_FORMAT_INFO finfo = GetFormatInfo(res->secondary.format);
@@ -572,7 +572,7 @@ swr_texture_layout(struct swr_screen *screen,
res->secondary.numSamples = (1 << pt->nr_samples);
res->secondary.pitch = res->alignedWidth * finfo.Bpp;
- res->secondary.pBaseAddress = (uint8_t *)_aligned_malloc(
+ res->secondary.pBaseAddress = (uint8_t *)AlignedMalloc(
res->alignedHeight * res->secondary.pitch, 64);
}
}
@@ -664,9 +664,9 @@ swr_resource_destroy(struct pipe_screen *p_screen, struct pipe_resource *pt)
struct sw_winsys *winsys = screen->winsys;
winsys->displaytarget_destroy(winsys, spr->display_target);
} else
- _aligned_free(spr->swr.pBaseAddress);
+ AlignedFree(spr->swr.pBaseAddress);
- _aligned_free(spr->secondary.pBaseAddress);
+ AlignedFree(spr->secondary.pBaseAddress);
FREE(spr);
}