mesa/*: use an internal enum for tessellation primitive types.
To avoid dragging gl.h into places it has no business being, defined tessellation primitive mode to an enum. This has a lot of fallout all over the place. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14605>
This commit is contained in:
@@ -694,10 +694,10 @@ merge_tess_info(struct shader_info *tes_info,
|
||||
tcs_info->tess.spacing == tes_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;
|
||||
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.point_mode |= tcs_info->tess.point_mode;
|
||||
}
|
||||
|
Reference in New Issue
Block a user