mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-04 02:18:16 +02:00
mesa/st: remove has_indirect_partial_stride from st_context
has_indirect_partial_stride is a direct copy of screen->caps.multi_draw_indirect_partial_stride. Read the cap from the screen directly. Reviewed-by: Marek Olšák <maraeo@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41184>
This commit is contained in:
parent
ec13dc4a38
commit
de3a22ba1d
3 changed files with 1 additions and 4 deletions
|
|
@ -583,8 +583,6 @@ st_create_context_priv(struct gl_context *ctx, struct pipe_context *pipe,
|
|||
PIPE_QUIRK_TEXTURE_BORDER_COLOR_SWIZZLE_ALPHA_NOT_W);
|
||||
ctx->Const.GLSLHasHalfFloatPacking =
|
||||
screen->caps.shader_pack_half_float;
|
||||
st->has_indirect_partial_stride =
|
||||
screen->caps.multi_draw_indirect_partial_stride;
|
||||
st->has_occlusion_query =
|
||||
screen->caps.occlusion_query;
|
||||
st->has_single_pipe_stat =
|
||||
|
|
|
|||
|
|
@ -159,7 +159,6 @@ struct st_context
|
|||
bool force_compute_based_texture_transfer;
|
||||
bool force_specialized_compute_transfer;
|
||||
bool force_persample_in_shader;
|
||||
bool has_indirect_partial_stride;
|
||||
bool has_occlusion_query;
|
||||
bool has_single_pipe_stat;
|
||||
bool has_pipeline_stat;
|
||||
|
|
|
|||
|
|
@ -219,7 +219,7 @@ st_indirect_draw_vbo(struct gl_context *ctx,
|
|||
} else {
|
||||
indirect.draw_count = draw_count;
|
||||
indirect.stride = stride;
|
||||
if (!st->has_indirect_partial_stride && stride &&
|
||||
if (!st->screen->caps.multi_draw_indirect_partial_stride && stride &&
|
||||
(draw_count > 1 || indirect_draw_count)) {
|
||||
/* DrawElementsIndirectCommand or DrawArraysIndirectCommand */
|
||||
const size_t struct_size = info.index_size ? sizeof(uint32_t) * 5 : sizeof(uint32_t) * 4;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue