mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 10:30:08 +01:00
panfrost,panvk: fix clang warnings
note the kernel reg one is a functional change. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33877>
This commit is contained in:
parent
fdeabf4162
commit
bf4ba66dbb
3 changed files with 5 additions and 6 deletions
|
|
@ -1210,8 +1210,8 @@ csf_emit_draw_state(struct panfrost_batch *batch,
|
|||
ctx->blend->base.alpha_to_coverage,
|
||||
ctx->depth_stencil->zs_always_passes);
|
||||
|
||||
cfg.pixel_kill_operation = earlyzs.kill;
|
||||
cfg.zs_update_operation = earlyzs.update;
|
||||
cfg.pixel_kill_operation = (enum mali_pixel_kill)earlyzs.kill;
|
||||
cfg.zs_update_operation = (enum mali_pixel_kill)earlyzs.update;
|
||||
|
||||
cfg.allow_forward_pixel_to_kill =
|
||||
pan_allow_forward_pixel_to_kill(ctx, fs);
|
||||
|
|
@ -1491,7 +1491,6 @@ GENX(csf_init_context)(struct panfrost_context *ctx)
|
|||
const struct cs_builder_conf bconf = {
|
||||
.nr_registers = csif_info->cs_reg_count,
|
||||
.nr_kernel_registers = MAX2(csif_info->unpreserved_cs_reg_count, 4),
|
||||
.nr_kernel_registers = 4,
|
||||
};
|
||||
struct cs_builder b;
|
||||
cs_builder_init(&b, &bconf, init_buffer);
|
||||
|
|
|
|||
|
|
@ -1590,7 +1590,7 @@ cs_trace_point(struct cs_builder *b, struct cs_index regs,
|
|||
{
|
||||
cs_emit(b, TRACE_POINT, I) {
|
||||
I.base_register =
|
||||
cs_src_tuple(b, regs, regs.size, BITFIELD_MASK(regs.size));
|
||||
cs_src_tuple(b, regs, regs.size, (uint16_t)BITFIELD_MASK(regs.size));
|
||||
I.register_count = regs.size;
|
||||
cs_apply_async(I, async);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1513,8 +1513,8 @@ prepare_dcd(struct panvk_cmd_buffer *cmdbuf)
|
|||
pan_earlyzs_get(pan_earlyzs_analyze(&fs->info), writes_zs || oq,
|
||||
alpha_to_coverage, zs_always_passes);
|
||||
|
||||
cfg.pixel_kill_operation = earlyzs.kill;
|
||||
cfg.zs_update_operation = earlyzs.update;
|
||||
cfg.pixel_kill_operation = (enum mali_pixel_kill)earlyzs.kill;
|
||||
cfg.zs_update_operation = (enum mali_pixel_kill)earlyzs.update;
|
||||
cfg.evaluate_per_sample = fs->info.fs.sample_shading &&
|
||||
(dyns->ms.rasterization_samples > 1);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue