From 405c7d75114fadcf744f6bbd5556c86c66ac631b Mon Sep 17 00:00:00 2001 From: Xavier Bouchoux Date: Sat, 21 Feb 2015 19:58:38 +0100 Subject: 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 Signed-off-by: Xavier Bouchoux --- src/gallium/state_trackers/nine/adapter9.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gallium/state_trackers') 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) { -- cgit v1.2.3