diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2011-02-10 14:24:50 -0500 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2011-02-10 14:24:50 -0500 |
commit | 7ac3a2e0bcdadff7c7172a9f833f526b526da16b (patch) | |
tree | cf91812abbb5ae2fa0cea9a4c9fbc9130e14e1f2 /src/drmmode_display.c | |
parent | e3145801b80fd4be4cf770128876e86e89bda66f (diff) |
6xx+: switch to linear aligned rather than linear general
linear aligned is supposedly more performant, but more
importantly, linear general only works on the CB without
slices. The texture blocks technically don't support
linear general although, I think linear general gets
upgraded to linear aligned in the hw which is why it
currently works.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Diffstat (limited to 'src/drmmode_display.c')
-rw-r--r-- | src/drmmode_display.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c index d5ad211a..06cfd953 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -1130,10 +1130,8 @@ int drmmode_get_pitch_align(ScrnInfoPtr scrn, int bpe, uint32_t tiling) /* further restrictions for scanout */ pitch_align = MAX(info->group_bytes / bpe, pitch_align); } else { - /* general surface requirements */ - pitch_align = info->group_bytes / bpe; - /* further restrictions for scanout */ - pitch_align = MAX(32, pitch_align); + /* linear aligned requirements */ + pitch_align = MAX(64, info->group_bytes / bpe); } } else { /* general surface requirements */ |