mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
iris: use linear for 1D textures
This gets us the gen9 compact linear storage
This commit is contained in:
parent
b2a5e1ebb3
commit
9f7654139b
1 changed files with 3 additions and 0 deletions
|
|
@ -248,6 +248,9 @@ iris_resource_create_with_modifiers(struct pipe_screen *pscreen,
|
|||
if (modifiers_count == 0 || !modifiers) {
|
||||
if (has_depth) {
|
||||
modifier = I915_FORMAT_MOD_Y_TILED;
|
||||
} else if (templ->target == PIPE_TEXTURE_1D ||
|
||||
templ->target == PIPE_TEXTURE_1D_ARRAY) {
|
||||
modifier = DRM_FORMAT_MOD_LINEAR;
|
||||
} else if (templ->bind & PIPE_BIND_DISPLAY_TARGET) {
|
||||
/* Display is X-tiled for historical reasons. */
|
||||
modifier = I915_FORMAT_MOD_X_TILED;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue