Mesa (master): llvmpipe: Handle PIPE_CAP_GUARD_*.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Wed May 12 09:27:29 PDT 2010


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

Author: José Fonseca <jfonseca at vmware.com>
Date:   Wed May 12 17:25:17 2010 +0100

llvmpipe: Handle PIPE_CAP_GUARD_*.

Without asserting.

---

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

diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c
index fadf24b..9d25485 100644
--- a/src/gallium/drivers/llvmpipe/lp_screen.c
+++ b/src/gallium/drivers/llvmpipe/lp_screen.c
@@ -186,6 +186,11 @@ llvmpipe_get_paramf(struct pipe_screen *screen, enum pipe_cap param)
       return 16.0; /* not actually signficant at this time */
    case PIPE_CAP_MAX_TEXTURE_LOD_BIAS:
       return 16.0; /* arbitrary */
+   case PIPE_CAP_GUARD_BAND_LEFT:
+   case PIPE_CAP_GUARD_BAND_TOP:
+   case PIPE_CAP_GUARD_BAND_RIGHT:
+   case PIPE_CAP_GUARD_BAND_BOTTOM:
+      return 0.0;
    default:
       assert(0);
       return 0;



More information about the mesa-commit mailing list