mesa/st: add context-flag for bptc-support
Acked-by: Marek Olšák <marek.olsak@amd.com> Acked-by: Soroush Kashani <soroush.kashani@imgtec.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18012>
This commit is contained in:

committed by
Marge Bot

parent
8f446322e1
commit
403b9bf870
@@ -584,6 +584,9 @@ st_create_context_priv(struct gl_context *ctx, struct pipe_context *pipe,
|
||||
st->has_astc_5x5_ldr =
|
||||
screen->is_format_supported(screen, PIPE_FORMAT_ASTC_5x5_SRGB,
|
||||
PIPE_TEXTURE_2D, 0, 0, PIPE_BIND_SAMPLER_VIEW);
|
||||
st->has_bptc = screen->is_format_supported(screen, PIPE_FORMAT_BPTC_SRGBA,
|
||||
PIPE_TEXTURE_2D, 0, 0,
|
||||
PIPE_BIND_SAMPLER_VIEW);
|
||||
st->force_persample_in_shader =
|
||||
screen->get_param(screen, PIPE_CAP_SAMPLE_SHADING) &&
|
||||
!screen->get_param(screen, PIPE_CAP_FORCE_PERSAMPLE_INTERP);
|
||||
|
@@ -143,6 +143,7 @@ struct st_context
|
||||
boolean transcode_astc;
|
||||
boolean has_astc_2d_ldr;
|
||||
boolean has_astc_5x5_ldr;
|
||||
boolean has_bptc;
|
||||
boolean prefer_blit_based_texture_transfer;
|
||||
boolean allow_compute_based_texture_transfer;
|
||||
boolean force_persample_in_shader;
|
||||
|
@@ -60,6 +60,7 @@ int main(int argc, char **argv)
|
||||
.has_etc2 = true,
|
||||
.has_astc_2d_ldr = true,
|
||||
.has_astc_5x5_ldr = true,
|
||||
.has_bptc = true,
|
||||
};
|
||||
struct st_context *st = &local_st;
|
||||
|
||||
|
Reference in New Issue
Block a user