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

Author: Tom Stellard <thomas.stell...@amd.com>
Date:   Sat Mar 21 00:27:16 2015 +0000

radeonsi/compute: Default to the same PIPE_SHADER_CAP values as other shader 
types v2

v2:
  - Fix typo

Reviewed-by: Marek Olšák <marek.ol...@amd.com>

---

 src/gallium/drivers/radeonsi/si_pipe.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/radeonsi/si_pipe.c 
b/src/gallium/drivers/radeonsi/si_pipe.c
index 0eada72..ae96b6b 100644
--- a/src/gallium/drivers/radeonsi/si_pipe.c
+++ b/src/gallium/drivers/radeonsi/si_pipe.c
@@ -398,8 +398,12 @@ static int si_get_shader_param(struct pipe_screen* 
pscreen, unsigned shader, enu
                        return max_const_buffer_size;
                }
                default:
-                       return 0;
+                       /* If compute shaders don't require a special value
+                        * for this cap, we can return the same value we
+                        * do for other shader types. */
+                       break;
                }
+               break;
        default:
                /* TODO: support tessellation */
                return 0;

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to