projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c56ff6
)
anv: pipeline: gen7: fix assert in debug mode
author
Lionel Landwerlin
<llandwerlin@gmail.com>
Thu, 11 Aug 2016 17:25:09 +0000
(18:25 +0100)
committer
Anuj Phogat
<anuj.phogat@gmail.com>
Sat, 13 Aug 2016 00:03:48 +0000
(17:03 -0700)
SampleMask is only 8bits long on gen7.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97278
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/intel/vulkan/genX_pipeline_util.h
patch
|
blob
|
history
diff --git
a/src/intel/vulkan/genX_pipeline_util.h
b/src/intel/vulkan/genX_pipeline_util.h
index cf2adb0cfa485b52b5689f4f3e56612e098e1c3e..679fb5768351370674b307c9ff2da97615e6718c 100644
(file)
--- a/
src/intel/vulkan/genX_pipeline_util.h
+++ b/
src/intel/vulkan/genX_pipeline_util.h
@@
-463,7
+463,11
@@
emit_ms_state(struct anv_pipeline *pipeline,
*
* 3DSTATE_SAMPLE_MASK.SampleMask is 16 bits.
*/
+#if GEN_GEN >= 8
uint32_t sample_mask = 0xffff;
+#else
+ uint32_t sample_mask = 0xff;
+#endif
if (info) {
samples = info->rasterizationSamples;