diff options
author | Hans de Goede <[email protected]> | 2015-08-12 13:39:42 +0200 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2015-09-04 16:07:08 -0400 |
commit | 3329703eb116a7ad73bc694356b43e014532240b (patch) | |
tree | 92f06c5b08b98e3b79cf4ac3d3c619b1117830b3 /docs/postprocess.html | |
parent | 48de40ce9c45de154965490843f9e50407970c26 (diff) |
nv30: Fix creation of scanout buffers
Scanout buffers on nv30 must always be non-swizzled and have special
width alignment constraints.
These constrains have been taken from the xf86-video-nouveau
src/nv_accel_common.c: nouveau_allocate_surface() function.
nouveau_allocate_surface() applies these width constraints only when a
tiled attribute is set, which it sets for all surfaces allocated via
dri, and this "tiling" is not the same as swizzling, scanout surfaces
must be linear / have a uniform_pitch or only complete garbage is shown.
This commit fixes dri3 on nv30 showing a garbled display, with dri3 the
scanout buffers are allocated by mesa, rather then by the ddx, and the
wrong stride of these buffers was causing the garbled display.
Cc: "10.6 11.0" <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'docs/postprocess.html')
0 files changed, 0 insertions, 0 deletions