• Dave Airlie's avatar
    drm/radeon/r600: fix tiling issues in CS checker. · f30df2fa
    Dave Airlie authored
    The CS checker had some incorrect alignment requirements for 2D surfaces,
    this made rendering to mipmap levels that were 2D broken.
    
    Also the CB height was being worked out from the BO size, this doesn't work
    at all when rendering mipmap levels, instead we work out what height userspace
    wanted from slice max and use that to check it fits inside the BO, however
    the DDX send the wrong slice max for an unaligned buffer so we have to workaround
    for that even though its a userspace bug.
    Reviewed-by: default avatarAlex Deucher <alexdeucher@gmail.com>
    Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
    f30df2fa
r600_cs.c 49.5 KB