projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b63ed4
)
nvfx: allow setting NULL constant buffers
author
Luca Barbieri
<luca@luca-barbieri.com>
Fri, 24 Sep 2010 12:12:24 +0000
(14:12 +0200)
committer
Luca Barbieri
<luca@luca-barbieri.com>
Fri, 24 Sep 2010 13:12:19 +0000
(15:12 +0200)
src/gallium/drivers/nvfx/nvfx_state.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/nvfx/nvfx_state.c
b/src/gallium/drivers/nvfx/nvfx_state.c
index
b767846
..
5461903
100644
(file)
--- a/
src/gallium/drivers/nvfx/nvfx_state.c
+++ b/
src/gallium/drivers/nvfx/nvfx_state.c
@@
-305,7
+305,7
@@
nvfx_set_constant_buffer(struct pipe_context *pipe, uint shader, uint index,
struct nvfx_context *nvfx = nvfx_context(pipe);
nvfx->constbuf[shader] = buf;
- nvfx->constbuf_nr[shader] = buf
->width0 / (4 * sizeof(float))
;
+ nvfx->constbuf_nr[shader] = buf
? (buf->width0 / (4 * sizeof(float))) : 0
;
if (shader == PIPE_SHADER_VERTEX) {
nvfx->dirty |= NVFX_NEW_VERTCONST;