[PATCH 5/5] wined3d: Enforce volume texture block restrictions

Henri Verbeet hverbeet at gmail.com
Fri Aug 30 10:31:32 CDT 2013


On 30 August 2013 00:19, Stefan Dösinger <stefan at codeweavers.com> wrote:
> +    if (format->flags & WINED3DFMT_FLAG_BLOCKS)
> +    {
> +        UINT width_mask = format->block_width - 1;
> +        UINT height_mask = format->block_height - 1;
> +        if (desc->width & width_mask || desc->height & height_mask)
> +        {
> +            WARN("(%p) : Texture cannot be created - width or height not block size aligned.\n", texture);
> +            return WINED3DERR_INVALIDCALL;
> +        }
> +    }
> +
Is this different from surfaces? IIRC surfaces are padded up to the
next multiple of the block size, although I may have that wrong. Not a
fan of the "(%p) : " trace formatting.



More information about the wine-devel mailing list