mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 13:00:09 +01:00
st/nine: Respect block alignment on surface lock
Respect block alignment for ATI1/ATI2 format when trying to lock a surface using LockRect(). Fixes failing WINE tests device.c test_surface_blocks() tests. Signed-off-by: Patrick Rudolph <siro@das-labor.org> Reviewed-by: Axel Davy <axel.davy@ens.fr>
This commit is contained in:
parent
56b4222b29
commit
0b35da59de
1 changed files with 1 additions and 1 deletions
|
|
@ -357,7 +357,7 @@ NineSurface9_LockRect( struct NineSurface9 *This,
|
|||
D3DERR_INVALIDCALL);
|
||||
|
||||
if (pRect && This->desc.Pool == D3DPOOL_DEFAULT &&
|
||||
compressed_format (This->desc.Format)) {
|
||||
util_format_is_compressed(This->base.info.format)) {
|
||||
const unsigned w = util_format_get_blockwidth(This->base.info.format);
|
||||
const unsigned h = util_format_get_blockheight(This->base.info.format);
|
||||
user_assert((pRect->left == 0 && pRect->right == This->desc.Width &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue