[Mesa-dev] [PATCH] ilo: ilo_get_shader_param should return INT

David Heidelberger david.heidelberger at ixit.cz
Fri Sep 12 17:17:04 PDT 2014


Without this fix ilo_get_shader_param returns negative value.

Tested on Gallium Nine state tracker.

Tested-by: Nick Sarnie <commendsarnex at gmail.com>
Signed-off-by: David Heidelberger <david.heidelberger at ixit.cz>
---
  src/gallium/drivers/ilo/ilo_screen.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/ilo/ilo_screen.c 
b/src/gallium/drivers/ilo/ilo_screen.c
index 1601ba3..361aaaa 100644
--- a/src/gallium/drivers/ilo/ilo_screen.c
+++ b/src/gallium/drivers/ilo/ilo_screen.c
@@ -113,7 +113,7 @@ ilo_get_shader_param(struct pipe_screen *screen, 
unsigned shader,
     case PIPE_SHADER_CAP_MAX_TEX_INDIRECTIONS:
        return (shader == PIPE_SHADER_FRAGMENT) ? 1024 : 0;
     case PIPE_SHADER_CAP_MAX_CONTROL_FLOW_DEPTH:
-      return UINT_MAX;
+      return INT_MAX;
     case PIPE_SHADER_CAP_MAX_INPUTS:
        /* this is limited by how many attributes SF can remap */
        return 16;
-- 
2.1.0



More information about the mesa-dev mailing list