[Mesa-dev] [PATCH 11/16] st/nine: Ignore D3DUSAGE_QUERY_POSTPIXELSHADER_BLENDING when D3DUSAGE_RENDERTARGET is specified

Axel Davy axel.davy at ens.fr
Fri Apr 24 13:09:40 PDT 2015


From: Xavier Bouchoux <xavierb at gmail.com>

This behaviour matches windows drivers.

Reviewed-by: Axel Davy <axel.davy at ens.fr>
Signed-off-by: Xavier Bouchoux <xavierb at gmail.com>
---
 src/gallium/state_trackers/nine/adapter9.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/state_trackers/nine/adapter9.c b/src/gallium/state_trackers/nine/adapter9.c
index 1d75155..9d6d659 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) {
-- 
2.1.0



More information about the mesa-dev mailing list