Mesa (master): llvmpipe: handle PIPE_CAP_TEXTURE_SWIZZLE query

Roland Scheidegger sroland at kemper.freedesktop.org
Sat Jun 5 07:55:28 PDT 2010


Module: Mesa
Branch: master
Commit: acb20e7208341fb6a2b81ac10aa01f17e93a1dea
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=acb20e7208341fb6a2b81ac10aa01f17e93a1dea

Author: Roland Scheidegger <sroland at vmware.com>
Date:   Sat Jun  5 16:18:06 2010 +0200

llvmpipe: handle PIPE_CAP_TEXTURE_SWIZZLE query

asserts on unknown caps

---

 src/gallium/drivers/llvmpipe/lp_screen.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c
index 6432cea..6a4ac64 100644
--- a/src/gallium/drivers/llvmpipe/lp_screen.c
+++ b/src/gallium/drivers/llvmpipe/lp_screen.c
@@ -166,6 +166,8 @@ llvmpipe_get_param(struct pipe_screen *screen, enum pipe_cap param)
       return LP_MAX_TGSI_PREDS;
    case PIPE_CAP_DEPTHSTENCIL_CLEAR_SEPARATE:
       return 1;
+   case PIPE_CAP_TEXTURE_SWIZZLE:
+      return 0;
    default:
       assert(0);
       return 0;



More information about the mesa-commit mailing list