summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2015-03-21 00:27:16 +0000
committerTom Stellard <[email protected]>2015-03-31 15:40:51 +0000
commit4c53d2acbb8b6fa48e91d7edaa81d95e19c2c40d (patch)
tree7141315463c91447e39c3beb196770f6b9bd974a /src
parenta714fbacf7bc5dcbc316bbfcb6bd9cb38fb4f858 (diff)
radeonsi/compute: Default to the same PIPE_SHADER_CAP values as other shader types v2
v2: - Fix typo Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/radeonsi/si_pipe.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c
index 0eada72ad5a..ae96b6bab1d 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;