mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
cso: add point rasterization sanity check assertion
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
parent
38a4fd8ad6
commit
7469966ed2
1 changed files with 5 additions and 0 deletions
|
|
@ -592,6 +592,11 @@ enum pipe_error cso_set_rasterizer(struct cso_context *ctx,
|
|||
(void*)templ, key_size);
|
||||
void *handle = NULL;
|
||||
|
||||
/* We can't have both point_quad_rasterization (sprites) and point_smooth
|
||||
* (round AA points) enabled at the same time.
|
||||
*/
|
||||
assert(!(templ->point_quad_rasterization && templ->point_smooth));
|
||||
|
||||
if (cso_hash_iter_is_null(iter)) {
|
||||
struct cso_rasterizer *cso = MALLOC(sizeof(struct cso_rasterizer));
|
||||
if (!cso)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue