summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/swr_clear.cpp
diff options
context:
space:
mode:
authorTim Rowley <[email protected]>2017-06-29 14:03:43 -0500
committerTim Rowley <[email protected]>2017-07-11 13:38:20 -0500
commit50cd222116b40e4df2462cb25a92960d557c9144 (patch)
treed80f494a6d0fdd90069cd3901ef6c9a14246daf1 /src/gallium/drivers/swr/swr_clear.cpp
parent27c5568de3674ec95f02816a06b13180bad0838b (diff)
swr: switch to using SwrGetInterface api table
Use the SWR rasterizer API through the table returned from SwrGetInterface rather than referencing the functions directly. This will allow us to move to a model of having the driver dynamically load the appropriate swr architecture library. Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/swr_clear.cpp')
-rw-r--r--src/gallium/drivers/swr/swr_clear.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/swr/swr_clear.cpp b/src/gallium/drivers/swr/swr_clear.cpp
index 3a35805a7ac..233432ee34a 100644
--- a/src/gallium/drivers/swr/swr_clear.cpp
+++ b/src/gallium/drivers/swr/swr_clear.cpp
@@ -78,9 +78,9 @@ swr_clear(struct pipe_context *pipe,
for (unsigned i = 0; i < layers; ++i) {
swr_update_draw_context(ctx);
- SwrClearRenderTarget(ctx->swrContext, clearMask, i,
- color->f, depth, stencil,
- clear_rect);
+ ctx->api.pfnSwrClearRenderTarget(ctx->swrContext, clearMask, i,
+ color->f, depth, stencil,
+ clear_rect);
// Mask out the attachments that are out of layers.
if (fb->zsbuf &&