mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
panfrost: Hoist assert from bind to create
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6327>
This commit is contained in:
parent
3b129dd335
commit
1cf7a3968f
1 changed files with 3 additions and 3 deletions
|
|
@ -384,6 +384,9 @@ panfrost_create_rasterizer_state(
|
|||
|
||||
so->base = *cso;
|
||||
|
||||
/* Gauranteed with the core GL call, so don't expose ARB_polygon_offset */
|
||||
assert(cso->offset_clamp == 0.0);
|
||||
|
||||
return so;
|
||||
}
|
||||
|
||||
|
|
@ -399,9 +402,6 @@ panfrost_bind_rasterizer_state(
|
|||
if (!hwcso)
|
||||
return;
|
||||
|
||||
/* Gauranteed with the core GL call, so don't expose ARB_polygon_offset */
|
||||
assert(ctx->rasterizer->base.offset_clamp == 0.0);
|
||||
|
||||
/* Point sprites are emulated */
|
||||
|
||||
struct panfrost_shader_state *variant = panfrost_get_shader_state(ctx, PIPE_SHADER_FRAGMENT);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue