diff options
author | Ilia Mirkin <[email protected]> | 2016-08-30 00:16:17 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2016-08-30 00:17:54 -0400 |
commit | ab0917311fbf7b0f03afc4aa1239d7b02b00fc87 (patch) | |
tree | 7121334b40746b2bf8f319131971c522d6d10cba /src/gallium/drivers | |
parent | ec16a5b0915a4a764e077f2b6abc8723143e488d (diff) |
nvc0: undo overzealous enum usage
Commit 7413625ad3 flipped a few functions too many to use
pipe_shader_type. These functions actually take an integer that does not
correspond 1:1 with the enum.
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/nouveau/nvc0/nvc0_state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_state.c b/src/gallium/drivers/nouveau/nvc0/nvc0_state.c index 6aaada4ab6c..4de2619a9c2 100644 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_state.c +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_state.c @@ -427,7 +427,7 @@ nvc0_sampler_state_delete(struct pipe_context *pipe, void *hwcso) static inline void nvc0_stage_sampler_states_bind(struct nvc0_context *nvc0, - enum pipe_shader_type s, + unsigned s, unsigned nr, void **hwcso) { unsigned i; @@ -457,7 +457,7 @@ nvc0_stage_sampler_states_bind(struct nvc0_context *nvc0, static void nvc0_stage_sampler_states_bind_range(struct nvc0_context *nvc0, - const enum pipe_shader_type s, + unsigned s, unsigned start, unsigned nr, void **cso) { const unsigned end = start + nr; |