• Home
  • Raw
  • Download

Lines Matching refs:vc4

53         struct vc4_context *vc4 = vc4_context(pctx);  in vc4_set_blend_color()  local
54 vc4->blend_color.f = *blend_color; in vc4_set_blend_color()
56 vc4->blend_color.ub[i] = float_to_ubyte(blend_color->color[i]); in vc4_set_blend_color()
57 vc4->dirty |= VC4_DIRTY_BLEND_COLOR; in vc4_set_blend_color()
64 struct vc4_context *vc4 = vc4_context(pctx); in vc4_set_stencil_ref() local
65 vc4->stencil_ref =* stencil_ref; in vc4_set_stencil_ref()
66 vc4->dirty |= VC4_DIRTY_STENCIL_REF; in vc4_set_stencil_ref()
73 struct vc4_context *vc4 = vc4_context(pctx); in vc4_set_clip_state() local
74 vc4->clip = *clip; in vc4_set_clip_state()
75 vc4->dirty |= VC4_DIRTY_CLIP; in vc4_set_clip_state()
81 struct vc4_context *vc4 = vc4_context(pctx); in vc4_set_sample_mask() local
82 vc4->sample_mask = sample_mask & ((1 << VC4_MAX_SAMPLES) - 1); in vc4_set_sample_mask()
83 vc4->dirty |= VC4_DIRTY_SAMPLE_MASK; in vc4_set_sample_mask()
261 struct vc4_context *vc4 = vc4_context(pctx); in vc4_set_polygon_stipple() local
262 vc4->stipple = *stipple; in vc4_set_polygon_stipple()
263 vc4->dirty |= VC4_DIRTY_STIPPLE; in vc4_set_polygon_stipple()
272 struct vc4_context *vc4 = vc4_context(pctx); in vc4_set_scissor_states() local
274 vc4->scissor = *scissor; in vc4_set_scissor_states()
275 vc4->dirty |= VC4_DIRTY_SCISSOR; in vc4_set_scissor_states()
284 struct vc4_context *vc4 = vc4_context(pctx); in vc4_set_viewport_states() local
285 vc4->viewport = *viewport; in vc4_set_viewport_states()
286 vc4->dirty |= VC4_DIRTY_VIEWPORT; in vc4_set_viewport_states()
294 struct vc4_context *vc4 = vc4_context(pctx); in vc4_set_vertex_buffers() local
295 struct vc4_vertexbuf_stateobj *so = &vc4->vertexbuf; in vc4_set_vertex_buffers()
301 vc4->dirty |= VC4_DIRTY_VTXBUF; in vc4_set_vertex_buffers()
308 struct vc4_context *vc4 = vc4_context(pctx); in vc4_set_index_buffer() local
311 pipe_resource_reference(&vc4->indexbuf.buffer, ib->buffer); in vc4_set_index_buffer()
312 vc4->indexbuf.index_size = ib->index_size; in vc4_set_index_buffer()
313 vc4->indexbuf.offset = ib->offset; in vc4_set_index_buffer()
314 vc4->indexbuf.user_buffer = ib->user_buffer; in vc4_set_index_buffer()
316 pipe_resource_reference(&vc4->indexbuf.buffer, NULL); in vc4_set_index_buffer()
319 vc4->dirty |= VC4_DIRTY_INDEXBUF; in vc4_set_index_buffer()
325 struct vc4_context *vc4 = vc4_context(pctx); in vc4_blend_state_bind() local
326 vc4->blend = hwcso; in vc4_blend_state_bind()
327 vc4->dirty |= VC4_DIRTY_BLEND; in vc4_blend_state_bind()
333 struct vc4_context *vc4 = vc4_context(pctx); in vc4_rasterizer_state_bind() local
336 if (vc4->rasterizer && rast && in vc4_rasterizer_state_bind()
337 vc4->rasterizer->base.flatshade != rast->base.flatshade) { in vc4_rasterizer_state_bind()
338 vc4->dirty |= VC4_DIRTY_FLAT_SHADE_FLAGS; in vc4_rasterizer_state_bind()
341 vc4->rasterizer = hwcso; in vc4_rasterizer_state_bind()
342 vc4->dirty |= VC4_DIRTY_RASTERIZER; in vc4_rasterizer_state_bind()
348 struct vc4_context *vc4 = vc4_context(pctx); in vc4_zsa_state_bind() local
349 vc4->zsa = hwcso; in vc4_zsa_state_bind()
350 vc4->dirty |= VC4_DIRTY_ZSA; in vc4_zsa_state_bind()
371 struct vc4_context *vc4 = vc4_context(pctx); in vc4_vertex_state_bind() local
372 vc4->vtx = hwcso; in vc4_vertex_state_bind()
373 vc4->dirty |= VC4_DIRTY_VTXSTATE; in vc4_vertex_state_bind()
380 struct vc4_context *vc4 = vc4_context(pctx); in vc4_set_constant_buffer() local
381 struct vc4_constbuf_stateobj *so = &vc4->constbuf[shader]; in vc4_set_constant_buffer()
401 vc4->dirty |= VC4_DIRTY_CONSTBUF; in vc4_set_constant_buffer()
408 struct vc4_context *vc4 = vc4_context(pctx); in vc4_set_framebuffer_state() local
409 struct pipe_framebuffer_state *cso = &vc4->framebuffer; in vc4_set_framebuffer_state()
412 vc4->job = NULL; in vc4_set_framebuffer_state()
416 for (; i < vc4->framebuffer.nr_cbufs; i++) in vc4_set_framebuffer_state()
446 vc4->dirty |= VC4_DIRTY_FRAMEBUFFER; in vc4_set_framebuffer_state()
450 vc4_get_stage_tex(struct vc4_context *vc4, enum pipe_shader_type shader) in vc4_get_stage_tex() argument
454 vc4->dirty |= VC4_DIRTY_FRAGTEX; in vc4_get_stage_tex()
455 return &vc4->fragtex; in vc4_get_stage_tex()
458 vc4->dirty |= VC4_DIRTY_VERTTEX; in vc4_get_stage_tex()
459 return &vc4->verttex; in vc4_get_stage_tex()
532 struct vc4_context *vc4 = vc4_context(pctx); in vc4_sampler_states_bind() local
533 struct vc4_texture_stateobj *stage_tex = vc4_get_stage_tex(vc4, shader); in vc4_sampler_states_bind()
638 struct vc4_context *vc4 = vc4_context(pctx); in vc4_set_sampler_views() local
639 struct vc4_texture_stateobj *stage_tex = vc4_get_stage_tex(vc4, shader); in vc4_set_sampler_views()