projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50188ad
)
svga: move result->key expression after result != NULL check
author
Brian Paul
<brianp@vmware.com>
Thu, 9 Aug 2012 16:14:51 +0000
(10:14 -0600)
committer
Brian Paul
<brianp@vmware.com>
Thu, 16 Aug 2012 14:58:55 +0000
(08:58 -0600)
src/gallium/drivers/svga/svga_state_constants.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/svga/svga_state_constants.c
b/src/gallium/drivers/svga/svga_state_constants.c
index a871154177620d353063cc09f4523ab5022f1229..77c93493a8df757474874b9f97c4810eff552a9c 100644
(file)
--- a/
src/gallium/drivers/svga/svga_state_constants.c
+++ b/
src/gallium/drivers/svga/svga_state_constants.c
@@
-320,7
+320,7
@@
static enum pipe_error
emit_vs_consts(struct svga_context *svga, unsigned dirty)
{
const struct svga_shader_result *result = svga->state.hw_draw.vs;
- const struct svga_vs_compile_key *key
= &result->key.vkey
;
+ const struct svga_vs_compile_key *key;
enum pipe_error ret = PIPE_OK;
unsigned offset;
@@
-329,6
+329,8
@@
emit_vs_consts(struct svga_context *svga, unsigned dirty)
if (result == NULL)
return PIPE_OK;
+ key = &result->key.vkey;
+
/* SVGA_NEW_VS_CONST_BUFFER
*/
ret = emit_consts( svga, PIPE_SHADER_VERTEX );