Lines Matching refs:vc5
57 struct vc5_context *vc5 = vc5_context(pctx); in vc5_set_blend_color() local
58 vc5->blend_color.f = *blend_color; in vc5_set_blend_color()
60 vc5->blend_color.hf[i] = in vc5_set_blend_color()
63 vc5->dirty |= VC5_DIRTY_BLEND_COLOR; in vc5_set_blend_color()
70 struct vc5_context *vc5 = vc5_context(pctx); in vc5_set_stencil_ref() local
71 vc5->stencil_ref = *stencil_ref; in vc5_set_stencil_ref()
72 vc5->dirty |= VC5_DIRTY_STENCIL_REF; in vc5_set_stencil_ref()
79 struct vc5_context *vc5 = vc5_context(pctx); in vc5_set_clip_state() local
80 vc5->clip = *clip; in vc5_set_clip_state()
81 vc5->dirty |= VC5_DIRTY_CLIP; in vc5_set_clip_state()
87 struct vc5_context *vc5 = vc5_context(pctx); in vc5_set_sample_mask() local
88 vc5->sample_mask = sample_mask & ((1 << VC5_MAX_SAMPLES) - 1); in vc5_set_sample_mask()
89 vc5->dirty |= VC5_DIRTY_SAMPLE_MASK; in vc5_set_sample_mask()
223 struct vc5_context *vc5 = vc5_context(pctx); in vc5_set_polygon_stipple() local
224 vc5->stipple = *stipple; in vc5_set_polygon_stipple()
225 vc5->dirty |= VC5_DIRTY_STIPPLE; in vc5_set_polygon_stipple()
234 struct vc5_context *vc5 = vc5_context(pctx); in vc5_set_scissor_states() local
236 vc5->scissor = *scissor; in vc5_set_scissor_states()
237 vc5->dirty |= VC5_DIRTY_SCISSOR; in vc5_set_scissor_states()
246 struct vc5_context *vc5 = vc5_context(pctx); in vc5_set_viewport_states() local
247 vc5->viewport = *viewport; in vc5_set_viewport_states()
248 vc5->dirty |= VC5_DIRTY_VIEWPORT; in vc5_set_viewport_states()
256 struct vc5_context *vc5 = vc5_context(pctx); in vc5_set_vertex_buffers() local
257 struct vc5_vertexbuf_stateobj *so = &vc5->vertexbuf; in vc5_set_vertex_buffers()
263 vc5->dirty |= VC5_DIRTY_VTXBUF; in vc5_set_vertex_buffers()
269 struct vc5_context *vc5 = vc5_context(pctx); in vc5_blend_state_bind() local
270 vc5->blend = hwcso; in vc5_blend_state_bind()
271 vc5->dirty |= VC5_DIRTY_BLEND; in vc5_blend_state_bind()
277 struct vc5_context *vc5 = vc5_context(pctx); in vc5_rasterizer_state_bind() local
278 vc5->rasterizer = hwcso; in vc5_rasterizer_state_bind()
279 vc5->dirty |= VC5_DIRTY_RASTERIZER; in vc5_rasterizer_state_bind()
285 struct vc5_context *vc5 = vc5_context(pctx); in vc5_zsa_state_bind() local
286 vc5->zsa = hwcso; in vc5_zsa_state_bind()
287 vc5->dirty |= VC5_DIRTY_ZSA; in vc5_zsa_state_bind()
294 struct vc5_context *vc5 = vc5_context(pctx); in vc5_vertex_state_create() local
369 so->default_attribute_values = vc5_bo_alloc(vc5->screen, in vc5_vertex_state_create()
392 struct vc5_context *vc5 = vc5_context(pctx); in vc5_vertex_state_bind() local
393 vc5->vtx = hwcso; in vc5_vertex_state_bind()
394 vc5->dirty |= VC5_DIRTY_VTXSTATE; in vc5_vertex_state_bind()
401 struct vc5_context *vc5 = vc5_context(pctx); in vc5_set_constant_buffer() local
402 struct vc5_constbuf_stateobj *so = &vc5->constbuf[shader]; in vc5_set_constant_buffer()
417 vc5->dirty |= VC5_DIRTY_CONSTBUF; in vc5_set_constant_buffer()
424 struct vc5_context *vc5 = vc5_context(pctx); in vc5_set_framebuffer_state() local
425 struct pipe_framebuffer_state *cso = &vc5->framebuffer; in vc5_set_framebuffer_state()
428 vc5->job = NULL; in vc5_set_framebuffer_state()
432 for (; i < vc5->framebuffer.nr_cbufs; i++) in vc5_set_framebuffer_state()
442 vc5->swap_color_rb = 0; in vc5_set_framebuffer_state()
443 vc5->blend_dst_alpha_one = 0; in vc5_set_framebuffer_state()
444 for (int i = 0; i < vc5->framebuffer.nr_cbufs; i++) { in vc5_set_framebuffer_state()
445 struct pipe_surface *cbuf = vc5->framebuffer.cbufs[i]; in vc5_set_framebuffer_state()
454 vc5->swap_color_rb |= 1 << i; in vc5_set_framebuffer_state()
458 vc5->blend_dst_alpha_one |= 1 << i; in vc5_set_framebuffer_state()
461 vc5->dirty |= VC5_DIRTY_FRAMEBUFFER; in vc5_set_framebuffer_state()
465 vc5_get_stage_tex(struct vc5_context *vc5, enum pipe_shader_type shader) in vc5_get_stage_tex() argument
469 vc5->dirty |= VC5_DIRTY_FRAGTEX; in vc5_get_stage_tex()
470 return &vc5->fragtex; in vc5_get_stage_tex()
473 vc5->dirty |= VC5_DIRTY_VERTTEX; in vc5_get_stage_tex()
474 return &vc5->verttex; in vc5_get_stage_tex()
505 MAYBE_UNUSED struct vc5_context *vc5 = vc5_context(pctx); in vc5_create_sampler_state() local
518 so->bo = vc5_bo_alloc(vc5->screen, cl_packet_length(SAMPLER_STATE), in vc5_create_sampler_state()
592 struct vc5_context *vc5 = vc5_context(pctx); in vc5_sampler_states_bind() local
593 struct vc5_texture_stateobj *stage_tex = vc5_get_stage_tex(vc5, shader); in vc5_sampler_states_bind()
647 struct vc5_context *vc5 = vc5_context(pctx); local
648 struct vc5_screen *screen = vc5->screen;
680 so->bo = vc5_bo_alloc(vc5->screen, cl_packet_length(SAMPLER_STATE),
815 struct vc5_context *vc5 = vc5_context(pctx); local
816 struct vc5_texture_stateobj *stage_tex = vc5_get_stage_tex(vc5, shader);