diff options
author | Topi Pohjolainen <[email protected]> | 2017-05-12 14:36:46 +0300 |
---|---|---|
committer | Topi Pohjolainen <[email protected]> | 2017-06-19 22:41:45 +0300 |
commit | 5a3105fe9a5693f0f3d1b09fb6d1e6b7bf8288ae (patch) | |
tree | b40c905fdad2e9324a1578c3b7f2bf55edd525d4 /src/mesa/drivers/dri/i965 | |
parent | a7480d3f030dfc03bab1ba1a64b84d9af2244530 (diff) |
i965: Add helper for converting isl tiling to bufmgr tiling
Reviewed-by: Nanley Chery <[email protected]>
Signed-off-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_blit.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_blit.h b/src/mesa/drivers/dri/i965/intel_blit.h index 2604417e2d5..5e4d1f5eb4a 100644 --- a/src/mesa/drivers/dri/i965/intel_blit.h +++ b/src/mesa/drivers/dri/i965/intel_blit.h @@ -28,6 +28,19 @@ #include "brw_context.h" +static inline unsigned +isl_tiling_to_bufmgr_tiling(enum isl_tiling tiling) +{ + if (tiling == ISL_TILING_X) + return I915_TILING_X; + + if (tiling == ISL_TILING_Y0) + return I915_TILING_Y; + + /* All other are unknown to buffer allocator. */ + return I915_TILING_NONE; +} + bool intelEmitCopyBlit(struct brw_context *brw, GLuint cpp, |