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

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


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

Currently one can build i915g without LLVM thus the current handling is
wrong. Whether using i915g w/o LLVM is a good idea or not is a question
for another time.

Cc: Stéphane Marchesin <marcheu at chromium.org>
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 src/gallium/drivers/i915/i915_screen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/i915/i915_screen.c b/src/gallium/drivers/i915/i915_screen.c
index 78898736d9..6f9e612348 100644
--- a/src/gallium/drivers/i915/i915_screen.c
+++ b/src/gallium/drivers/i915/i915_screen.c
@@ -114,7 +114,7 @@ i915_get_shader_param(struct pipe_screen *screen, unsigned shader, enum pipe_sha
       switch (cap) {
       case PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS:
       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_SAMPLERS;
          else
             return 0;
-- 
2.11.0



More information about the mesa-dev mailing list