summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/swr_scratch.cpp
diff options
context:
space:
mode:
authorTim Rowley <[email protected]>2017-10-17 15:11:19 -0500
committerTim Rowley <[email protected]>2017-10-19 13:10:55 -0500
commitbfda35c8dd4bc602a3b174377dfea92319438e2b (patch)
tree832141fc605c7b4503dfdbcb2a0fc48e3ed0d67d /src/gallium/drivers/swr/swr_scratch.cpp
parent028ffa5e1820707ef0cab52853e36a259b00c849 (diff)
swr: knob overrides for Intel Xeon Phi
Architecture benefits from having more threads/work outstanding. Patch by Jan Zielinski. 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.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 d298a48dc0b..8afe73c30e4 100644
--- a/src/gallium/drivers/swr/swr_scratch.cpp
+++ b/src/gallium/drivers/swr/swr_scratch.cpp
@@ -45,7 +45,7 @@ swr_copy_to_scratch_space(struct swr_context *ctx,
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;
+ uint32_t max_size_in_flight = size * ctx->max_draws_in_flight;
/* Need to grow space */
if (max_size_in_flight > space->current_size) {