[Mesa-dev] [PATCH 2/8] llvmpipe: use draw_get_option_use_llvm() instead of open coding it

Emil Velikov emil.l.velikov at gmail.com
Thu Jan 26 18:27:02 UTC 2017


From: Emil Velikov <emil.velikov at collabora.com>

Cc: Roland Scheidegger <sroland at vmware.com>
Cc: Jose Fonseca <jfonseca at vmware.com>
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 src/gallium/drivers/llvmpipe/lp_screen.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c
index 89a1dc868e..c913767fc0 100644
--- a/src/gallium/drivers/llvmpipe/lp_screen.c
+++ b/src/gallium/drivers/llvmpipe/lp_screen.c
@@ -368,12 +368,12 @@ llvmpipe_get_shader_param(struct pipe_screen *screen, unsigned shader, enum pipe
           * support vertex shader texture lookups when LLVM is enabled in
           * the draw module.
           */
-         if (debug_get_bool_option("DRAW_USE_LLVM", TRUE))
+         if (draw_get_option_use_llvm())
             return PIPE_MAX_SAMPLERS;
          else
             return 0;
       case PIPE_SHADER_CAP_MAX_SAMPLER_VIEWS:
-         if (debug_get_bool_option("DRAW_USE_LLVM", TRUE))
+         if (draw_get_option_use_llvm())
             return PIPE_MAX_SHADER_SAMPLER_VIEWS;
          else
             return 0;
-- 
2.11.0



More information about the mesa-dev mailing list