anv: merge tessellation's primitive mode in merge_tess_info()
SPIR-V tessellation shaders that were created from HLSL will have the primitive generation domain set in tessellation control shader (hull shader in HLSL) instead of the tessellation evaluation shader. v2: - Add assert (Kenneth) Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
32c1a54bd0
commit
ba05f6f72b
|
@ -587,6 +587,10 @@ merge_tess_info(struct shader_info *tes_info,
|
||||||
tcs_info->tess.spacing == tes_info->tess.spacing);
|
tcs_info->tess.spacing == tes_info->tess.spacing);
|
||||||
tes_info->tess.spacing |= tcs_info->tess.spacing;
|
tes_info->tess.spacing |= tcs_info->tess.spacing;
|
||||||
|
|
||||||
|
assert(tcs_info->tess.primitive_mode == 0 ||
|
||||||
|
tes_info->tess.primitive_mode == 0 ||
|
||||||
|
tcs_info->tess.primitive_mode == tes_info->tess.primitive_mode);
|
||||||
|
tes_info->tess.primitive_mode |= tcs_info->tess.primitive_mode;
|
||||||
tes_info->tess.ccw |= tcs_info->tess.ccw;
|
tes_info->tess.ccw |= tcs_info->tess.ccw;
|
||||||
tes_info->tess.point_mode |= tcs_info->tess.point_mode;
|
tes_info->tess.point_mode |= tcs_info->tess.point_mode;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue