diff options
author | Jan Zielinski <[email protected]> | 2019-07-17 17:22:16 +0200 |
---|---|---|
committer | Jan Zielinski <[email protected]> | 2019-07-18 16:17:00 +0200 |
commit | 6f7306c029a7ebe776b513a157b939c866f4d240 (patch) | |
tree | 4a32632558b8c5eae6a46bbc2bee0b764b95002b /src/gallium/drivers/swr/swr_context.h | |
parent | 4627a0c4ebc777716e7cadfd80e4f9d5b411762b (diff) |
swr/rast: Refactor memory API between rasterizer core and swr
This commit cleans up API between the core of the rasterizer and swr.
Some formatting changes are also done.
Reviewed-by: Alok Hota <[email protected]>
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 b207c02ca8a..3b83458b947 100644 --- a/src/gallium/drivers/swr/swr_context.h +++ b/src/gallium/drivers/swr/swr_context.h @@ -29,6 +29,8 @@ #include "pipe/p_context.h" #include "pipe/p_state.h" #include "util/u_blitter.h" +#include "rasterizer/memory/SurfaceState.h" +#include "rasterizer/memory/InitMemory.h" #include "jit_api.h" #include "swr_state.h" #include <unordered_map> @@ -104,6 +106,7 @@ struct swr_draw_context { SWR_SURFACE_STATE renderTargets[SWR_NUM_ATTACHMENTS]; struct swr_query_result *pStats; // @llvm_struct SWR_INTERFACE *pAPI; // @llvm_struct - Needed for the swr_memory callbacks + SWR_TILE_INTERFACE *pTileAPI; // @llvm_struct - Needed for the swr_memory callbacks }; /* gen_llvm_types FINI */ @@ -173,6 +176,7 @@ struct swr_context { unsigned dirty; /**< Mask of SWR_NEW_x flags */ SWR_INTERFACE api; + SWR_TILE_INTERFACE tileApi; uint32_t max_draws_in_flight; }; |