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

Author: Timothy Arceri <tarc...@itsqueeze.com>
Date:   Fri Feb  9 12:01:04 2018 +1100

r600: always return PIPE_SHADER_IR_TGSI for PIPE_SHADER_CAP_PREFERRED_IR

We now use PIPE_SHADER_CAP_SUPPORTED_IRS to check for native support
in clover.

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

---

 src/gallium/drivers/r600/r600_pipe.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_pipe.c 
b/src/gallium/drivers/r600/r600_pipe.c
index fd8edcc9fb..ecdbe5d9bf 100644
--- a/src/gallium/drivers/r600/r600_pipe.c
+++ b/src/gallium/drivers/r600/r600_pipe.c
@@ -598,11 +598,7 @@ static int r600_get_shader_param(struct pipe_screen* 
pscreen,
        case PIPE_SHADER_CAP_MAX_SAMPLER_VIEWS:
                return 16;
         case PIPE_SHADER_CAP_PREFERRED_IR:
-               if (shader == PIPE_SHADER_COMPUTE) {
-                       return PIPE_SHADER_IR_NATIVE;
-               } else {
-                       return PIPE_SHADER_IR_TGSI;
-               }
+               return PIPE_SHADER_IR_TGSI;
        case PIPE_SHADER_CAP_SUPPORTED_IRS: {
                int ir = 0;
                if (shader == PIPE_SHADER_COMPUTE)

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

Reply via email to