diff options
author | Xavier Bouchoux <[email protected]> | 2015-02-21 19:58:38 +0100 |
---|---|---|
committer | Axel Davy <[email protected]> | 2015-04-29 08:28:10 +0200 |
commit | 405c7d75114fadcf744f6bbd5556c86c66ac631b (patch) | |
tree | 6d345a43285f8b1840e1b203f2a505c5b851410c | |
parent | d838fe8243aa0e96b198c876c1b5d79c098d1c0d (diff) |
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 <[email protected]>
Signed-off-by: Xavier Bouchoux <[email protected]>
-rw-r--r-- | src/gallium/state_trackers/nine/adapter9.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/nine/adapter9.c b/src/gallium/state_trackers/nine/adapter9.c index 1d751559991..9d6d6590e00 100644 --- a/src/gallium/state_trackers/nine/adapter9.c +++ b/src/gallium/state_trackers/nine/adapter9.c @@ -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) { |