mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
st/nine: Fix behaviour of D3DUSAGE_QUERY_POSTPIXELSHADER_BLENDING
Ignore D3DUSAGE_QUERY_POSTPIXELSHADER_BLENDING when D3DUSAGE_RENDERTARGET is not specified. This behaviour matches windows drivers. Reviewed-by: Axel Davy <axel.davy@ens.fr> Signed-off-by: Xavier Bouchoux <xavierb@gmail.com>
This commit is contained in:
parent
d838fe8243
commit
405c7d7511
1 changed files with 2 additions and 1 deletions
|
|
@ -311,7 +311,8 @@ NineAdapter9_CheckDeviceFormat( struct NineAdapter9 *This,
|
|||
if (CheckFormat == D3DFMT_ATOC && RType == D3DRTYPE_SURFACE)
|
||||
return D3D_OK;
|
||||
|
||||
if (Usage & D3DUSAGE_QUERY_POSTPIXELSHADER_BLENDING)
|
||||
if ((Usage & D3DUSAGE_QUERY_POSTPIXELSHADER_BLENDING) &&
|
||||
(Usage & D3DUSAGE_RENDERTARGET))
|
||||
bind |= PIPE_BIND_BLENDABLE;
|
||||
|
||||
if (Usage & D3DUSAGE_DMAP) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue