diff options
Diffstat (limited to 'src/gallium/drivers/swr/swr_context.h')
-rw-r--r-- | src/gallium/drivers/swr/swr_context.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/swr/swr_context.h b/src/gallium/drivers/swr/swr_context.h index 75ecae334d5..4133720cbf0 100644 --- a/src/gallium/drivers/swr/swr_context.h +++ b/src/gallium/drivers/swr/swr_context.h @@ -92,6 +92,7 @@ struct swr_draw_context { float userClipPlanes[PIPE_MAX_CLIP_PLANES][4]; SWR_SURFACE_STATE renderTargets[SWR_NUM_ATTACHMENTS]; + void *swr_ctx; }; /* gen_llvm_types FINI */ @@ -157,6 +158,8 @@ struct swr_context { /* SWR private state - draw context */ struct swr_draw_context swrDC; + SWR_STATS stats; + unsigned dirty; /**< Mask of SWR_NEW_x flags */ }; @@ -171,6 +174,7 @@ swr_update_draw_context(struct swr_context *ctx) { swr_draw_context *pDC = (swr_draw_context *)SwrGetPrivateContextState(ctx->swrContext); + ctx->swrDC.swr_ctx = ctx; memcpy(pDC, &ctx->swrDC, sizeof(swr_draw_context)); } |