Mesa (master): vc4: Shut up runtime warnings about new pipe caps.

Eric Anholt anholt at kemper.freedesktop.org
Fri Feb 20 07:36:15 UTC 2015


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

Author: Eric Anholt <eric at anholt.net>
Date:   Thu Feb 19 23:34:37 2015 -0800

vc4: Shut up runtime warnings about new pipe caps.

---

 src/gallium/drivers/vc4/vc4_screen.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/drivers/vc4/vc4_screen.c b/src/gallium/drivers/vc4/vc4_screen.c
index 7464351..7c62847 100644
--- a/src/gallium/drivers/vc4/vc4_screen.c
+++ b/src/gallium/drivers/vc4/vc4_screen.c
@@ -317,6 +317,8 @@ vc4_screen_get_shader_param(struct pipe_screen *pscreen, unsigned shader,
         case PIPE_SHADER_CAP_INTEGERS:
                 return 1;
         case PIPE_SHADER_CAP_DOUBLES:
+        case PIPE_SHADER_CAP_TGSI_DROUND_SUPPORTED:
+        case PIPE_SHADER_CAP_TGSI_DFRACEXP_DLDEXP_SUPPORTED:
                 return 0;
         case PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS:
         case PIPE_SHADER_CAP_MAX_SAMPLER_VIEWS:




More information about the mesa-commit mailing list