Commit 4ce339e7 authored by Louis-Francis Ratté-Boulianne's avatar Louis-Francis Ratté-Boulianne Committed by Marge Bot

gallium: add PIPE_CAP_PACKED_STREAM_OUTPUT

Setting this cap to 0 (default is 1) should disable packing
optimization for stream output (e.g. GL transform feedback captured
variables).
Signed-off-by: Louis-Francis Ratté-Boulianne's avatarLouis-Francis Ratté-Boulianne <lfrb@collabora.com>
Reviewed-by: Alyssa Rosenzweig's avatarAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Acked-by: Daniel Stone's avatarDaniel Stone <daniels@collabora.com>
Part-of: <!2433>
parent 82dc1492
......@@ -414,6 +414,9 @@ u_pipe_screen_get_param_defaults(struct pipe_screen *pscreen,
/* Enables INTEL_blackhole_render */
return 0;
case PIPE_CAP_PACKED_STREAM_OUTPUT:
return 1;
default:
unreachable("bad PIPE_CAP_*");
}
......
......@@ -915,6 +915,7 @@ enum pipe_cap
/* Turn draw, dispatch, blit into NOOP */
PIPE_CAP_FRONTEND_NOOP,
PIPE_CAP_NIR_IMAGES_AS_DEREF,
PIPE_CAP_PACKED_STREAM_OUTPUT,
};
/**
......
......@@ -1420,6 +1420,9 @@ void st_init_extensions(struct pipe_screen *screen,
consts->DisableVaryingPacking = GL_TRUE;
}
if (!screen->get_param(screen, PIPE_CAP_PACKED_STREAM_OUTPUT))
consts->DisableTransformFeedbackPacking = GL_TRUE;
unsigned max_fb_fetch_rts = screen->get_param(screen, PIPE_CAP_FBFETCH);
bool coherent_fb_fetch =
screen->get_param(screen, PIPE_CAP_FBFETCH_COHERENT);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment