mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
st/nine: Add ColorFill test for compressed textures
ColorFill should contain alignment checks for compressed textures. Signed-off-by: Axel Davy <axel.davy@ens.fr>
This commit is contained in:
parent
d11d913987
commit
7fc8391d23
1 changed files with 8 additions and 0 deletions
|
|
@ -1732,6 +1732,14 @@ NineDevice9_ColorFill( struct NineDevice9 *This,
|
|||
y = pRect->top;
|
||||
w = pRect->right - pRect->left;
|
||||
h = pRect->bottom - pRect->top;
|
||||
/* Wine tests: */
|
||||
if (compressed_format(surf->desc.Format)) {
|
||||
const unsigned bw = util_format_get_blockwidth(surf->base.info.format);
|
||||
const unsigned bh = util_format_get_blockheight(surf->base.info.format);
|
||||
|
||||
user_assert(!(x % bw) && !(y % bh) && !(w % bw) && !(h % bh),
|
||||
D3DERR_INVALIDCALL);
|
||||
}
|
||||
} else{
|
||||
x = 0;
|
||||
y = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue