mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
d3d12: Fully init primconvert config
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13670>
This commit is contained in:
parent
c151e9d087
commit
e7502c5404
1 changed files with 2 additions and 1 deletions
|
|
@ -1988,12 +1988,13 @@ d3d12_context_create(struct pipe_screen *pscreen, void *priv, unsigned flags)
|
|||
PIPE_USAGE_DEFAULT,
|
||||
0, true);
|
||||
|
||||
struct primconvert_config cfg;
|
||||
struct primconvert_config cfg = {};
|
||||
cfg.primtypes_mask = 1 << PIPE_PRIM_POINTS |
|
||||
1 << PIPE_PRIM_LINES |
|
||||
1 << PIPE_PRIM_LINE_STRIP |
|
||||
1 << PIPE_PRIM_TRIANGLES |
|
||||
1 << PIPE_PRIM_TRIANGLE_STRIP;
|
||||
cfg.restart_primtypes_mask = cfg.primtypes_mask;
|
||||
cfg.fixed_prim_restart = true;
|
||||
ctx->primconvert = util_primconvert_create_config(&ctx->base, &cfg);
|
||||
if (!ctx->primconvert) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue