Lines Matching refs:render
584 struct lima_render_state *render = in lima_pack_render_state() local
586 sizeof(*render)); in lima_pack_render_state()
596 render->blend_color_bg = float_to_ubyte(ctx->blend_color.color[2]) | in lima_pack_render_state()
598 render->blend_color_ra = float_to_ubyte(ctx->blend_color.color[0]) | in lima_pack_render_state()
602 render->alpha_blend = lima_calculate_alpha_blend(rt->rgb_func, rt->alpha_func, in lima_pack_render_state()
613 render->alpha_blend = lima_calculate_alpha_blend(PIPE_BLEND_ADD, PIPE_BLEND_ADD, in lima_pack_render_state()
618 render->alpha_blend |= (rt->colormask & PIPE_MASK_RGBA) << 28; in lima_pack_render_state()
621 render->depth_test = lima_calculate_depth_test(&ctx->zsa->base, rst); in lima_pack_render_state()
624 render->depth_test |= 0x10; /* don't clip depth near */ in lima_pack_render_state()
626 render->depth_test |= 0x20; /* don't clip depth far */ in lima_pack_render_state()
629 render->depth_test |= (fs->state.frag_depth_reg << 6); in lima_pack_render_state()
631 render->depth_test |= 0x801; in lima_pack_render_state()
640 render->depth_range = near | (far << 16); in lima_pack_render_state()
646 render->stencil_front = stencil[0].func | in lima_pack_render_state()
652 render->stencil_back = render->stencil_front; in lima_pack_render_state()
653 render->stencil_test = (stencil[0].writemask & 0xff) | (stencil[0].writemask & 0xff) << 8; in lima_pack_render_state()
655 render->stencil_back = stencil[1].func | in lima_pack_render_state()
661 render->stencil_test = (stencil[0].writemask & 0xff) | (stencil[1].writemask & 0xff) << 8; in lima_pack_render_state()
671 render->stencil_front = 0xff000007; in lima_pack_render_state()
672 render->stencil_back = 0xff000007; in lima_pack_render_state()
673 render->stencil_test = 0x0000ffff; in lima_pack_render_state()
678 render->multi_sample = 0x00000000; in lima_pack_render_state()
680 render->multi_sample = 0x00000400; in lima_pack_render_state()
682 render->multi_sample = 0x00000800; in lima_pack_render_state()
684 render->multi_sample |= 0x68; in lima_pack_render_state()
686 render->multi_sample |= (1 << 7); in lima_pack_render_state()
688 render->multi_sample |= (1 << 8); in lima_pack_render_state()
689 render->multi_sample |= (ctx->sample_mask << 12); in lima_pack_render_state()
692 render->multi_sample |= (fs->state.frag_color0_reg << 28) | in lima_pack_render_state()
699 render->multi_sample |= ctx->zsa->base.alpha_func; in lima_pack_render_state()
700 render->stencil_test |= float_to_ubyte(ctx->zsa->base.alpha_ref_value) << 16; in lima_pack_render_state()
703 render->multi_sample |= 0x7; in lima_pack_render_state()
706 render->shader_address = in lima_pack_render_state()
710 render->uniforms_address = 0x00000000; in lima_pack_render_state()
712 render->textures_address = 0x00000000; in lima_pack_render_state()
714 render->aux0 = (ctx->vs->state.varying_stride >> 3); in lima_pack_render_state()
715 render->aux1 = 0x00000000; in lima_pack_render_state()
717 render->aux1 = 0x00001000; in lima_pack_render_state()
720 render->aux1 |= 0x00002000; in lima_pack_render_state()
737 render->aux0 |= 0x300; in lima_pack_render_state()
740 render->aux0 |= 0x1000; in lima_pack_render_state()
743 render->textures_address = in lima_pack_render_state()
745 render->aux0 |= ctx->tex_stateobj.num_samplers << 14; in lima_pack_render_state()
746 render->aux0 |= 0x20; in lima_pack_render_state()
750 render->uniforms_address = in lima_pack_render_state()
758 render->uniforms_address |= bits > 0xf ? 0xf : bits; in lima_pack_render_state()
760 render->aux0 |= 0x80; in lima_pack_render_state()
761 render->aux1 |= 0x10000; in lima_pack_render_state()
766 render->aux0 |= (fs->state.frag_color1_reg << 28); in lima_pack_render_state()
769 render->varying_types = 0x00000000; in lima_pack_render_state()
770 render->varyings_address = ctx->gp_output->va + in lima_pack_render_state()
786 render->varying_types |= val << (3 * index); in lima_pack_render_state()
788 render->varying_types |= val << 30; in lima_pack_render_state()
789 render->varyings_address |= val >> 2; in lima_pack_render_state()
792 render->varyings_address |= val << 1; in lima_pack_render_state()
798 render->varying_types = 0x00000000; in lima_pack_render_state()
799 render->varyings_address = 0x00000000; in lima_pack_render_state()
805 job->dump, render, sizeof(*render), in lima_pack_render_state()
810 job->dump, render, sizeof(*render), in lima_pack_render_state()