mesa/st: add context-flag for latc
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18564>
This commit is contained in:
@@ -593,6 +593,9 @@ st_create_context_priv(struct gl_context *ctx, struct pipe_context *pipe,
|
||||
st->has_rgtc = screen->is_format_supported(screen, PIPE_FORMAT_RGTC2_UNORM,
|
||||
PIPE_TEXTURE_2D, 0, 0,
|
||||
PIPE_BIND_SAMPLER_VIEW);
|
||||
st->has_latc = screen->is_format_supported(screen, PIPE_FORMAT_LATC2_UNORM,
|
||||
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);
|
||||
|
||||
@@ -145,6 +145,7 @@ struct st_context
|
||||
boolean has_astc_5x5_ldr;
|
||||
boolean has_s3tc;
|
||||
boolean has_rgtc;
|
||||
boolean has_latc;
|
||||
boolean has_bptc;
|
||||
boolean prefer_blit_based_texture_transfer;
|
||||
boolean allow_compute_based_texture_transfer;
|
||||
|
||||
@@ -62,6 +62,7 @@ int main(int argc, char **argv)
|
||||
.has_astc_5x5_ldr = true,
|
||||
.has_s3tc = true,
|
||||
.has_rgtc = true,
|
||||
.has_latc = true,
|
||||
.has_bptc = true,
|
||||
};
|
||||
struct st_context *st = &local_st;
|
||||
|
||||
Reference in New Issue
Block a user