summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/swr_scratch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/swr/swr_scratch.cpp')
-rw-r--r--src/gallium/drivers/swr/swr_scratch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/swr/swr_scratch.cpp b/src/gallium/drivers/swr/swr_scratch.cpp
index db095dea7e3..6a9ab10ee2f 100644
--- a/src/gallium/drivers/swr/swr_scratch.cpp
+++ b/src/gallium/drivers/swr/swr_scratch.cpp
@@ -41,7 +41,7 @@ swr_copy_to_scratch_space(struct swr_context *ctx,
if (size >= 2048) { /* XXX TODO create KNOB_ for this */
/* Use per draw SwrAllocDrawContextMemory for larger copies */
- ptr = SwrAllocDrawContextMemory(ctx->swrContext, size, 4);
+ ptr = ctx->api.pfnSwrAllocDrawContextMemory(ctx->swrContext, size, 4);
} else {
/* Allocate enough so that MAX_DRAWS_IN_FLIGHT sets fit. */
unsigned int max_size_in_flight = size * KNOB_MAX_DRAWS_IN_FLIGHT;