diff options
author | Jordan Justen <[email protected]> | 2019-04-19 16:28:01 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2019-10-17 14:47:23 -0700 |
commit | da10fa9d63675dcdd789827cdb5b082140ec0621 (patch) | |
tree | dc5269e6f21cee1170f9f076983a5cace5241014 | |
parent | be89fbd51e2d275e2d1bb4d1f72f0e771bf41308 (diff) |
iris: Let isl decide the supported tiling in more situations
Signed-off-by: Jordan Justen <[email protected]>
Suggested-by: Nanley Chery <[email protected]>
Reviewed-by: Nanley Chery <[email protected]>
-rw-r--r-- | src/gallium/drivers/iris/iris_resource.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/gallium/drivers/iris/iris_resource.c b/src/gallium/drivers/iris/iris_resource.c index cd411c3e6b8..eac329d9ba7 100644 --- a/src/gallium/drivers/iris/iris_resource.c +++ b/src/gallium/drivers/iris/iris_resource.c @@ -719,21 +719,6 @@ iris_resource_create_with_modifiers(struct pipe_screen *pscreen, return NULL; } - /* No modifiers - we can select our own tiling. */ - - if (has_depth) { - /* Depth must be Y-tiled */ - tiling_flags = ISL_TILING_Y0_BIT; - } else if (templ->format == PIPE_FORMAT_S8_UINT) { - /* Stencil must be W-tiled */ - tiling_flags = ISL_TILING_W_BIT; - } else if (templ->target == PIPE_BUFFER || - templ->target == PIPE_TEXTURE_1D || - templ->target == PIPE_TEXTURE_1D_ARRAY) { - /* Use linear for buffers and 1D textures */ - tiling_flags = ISL_TILING_LINEAR_BIT; - } - /* Use linear for staging buffers */ if (templ->usage == PIPE_USAGE_STAGING || templ->bind & (PIPE_BIND_LINEAR | PIPE_BIND_CURSOR) ) |