projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch '7.8' into master
[mesa.git]
/
src
/
gallium
/
drivers
/
svga
/
svga_tgsi_emit.h
diff --git
a/src/gallium/drivers/svga/svga_tgsi_emit.h
b/src/gallium/drivers/svga/svga_tgsi_emit.h
index e8f75485d5559ac6f698e8570a3c1d410625d2a3..48eced2ecea33d3fe266b45ca4d4fd8179991996 100644
(file)
--- a/
src/gallium/drivers/svga/svga_tgsi_emit.h
+++ b/
src/gallium/drivers/svga/svga_tgsi_emit.h
@@
-138,6
+138,7
@@
static INLINE boolean emit_dst( struct svga_shader_emitter *emit,
SVGA3dShaderDestToken dest )
{
assert(dest.reserved0);
+ assert(dest.mask);
return svga_shader_emit_dword( emit, dest.value );
}
@@
-267,6
+268,7
@@
static INLINE SVGA3dShaderDestToken
writemask( SVGA3dShaderDestToken dest,
unsigned mask )
{
+ assert(dest.mask & mask);
dest.mask &= mask;
return dest;
}