projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef98e2e
)
nv50: clamp PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS to PIPE_MAX_SAMPLERS
author
Brian Paul
<brianp@vmware.com>
Wed, 23 Oct 2013 19:16:34 +0000
(13:16 -0600)
committer
Brian Paul
<brianp@vmware.com>
Wed, 23 Oct 2013 19:43:18 +0000
(13:43 -0600)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=70212
Tested-by: Aaron Watry <awatry@gmail.com>
src/gallium/drivers/nouveau/nv50/nv50_screen.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/nouveau/nv50/nv50_screen.c
b/src/gallium/drivers/nouveau/nv50/nv50_screen.c
index f454ec7765687391a98dd0c0b1cfaca02ab2ee3d..a6bce342ccd1793a9b3abe25380632286cf49fe1 100644
(file)
--- a/
src/gallium/drivers/nouveau/nv50/nv50_screen.c
+++ b/
src/gallium/drivers/nouveau/nv50/nv50_screen.c
@@
-249,7
+249,7
@@
nv50_screen_get_shader_param(struct pipe_screen *pscreen, unsigned shader,
case PIPE_SHADER_CAP_INTEGERS:
return 1;
case PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS:
- return
32
;
+ return
MIN2(32, PIPE_MAX_SAMPLERS)
;
default:
NOUVEAU_ERR("unknown PIPE_SHADER_CAP %d\n", param);
return 0;