Lines Matching defs:vrend_sub_context

567 struct vrend_sub_context {  struct
568 struct list_head head;
570 virgl_gl_context gl_context;
572 int sub_ctx_id;
574 GLuint vaoid;
575 uint32_t enabled_attribs_bitmask;
581 struct list_head gl_programs[VREND_PROGRAM_NQUEUES];
582 struct list_head cs_programs;
583 struct util_hash_table *object_hash;
585 struct vrend_vertex_element_array *ve;
586 int num_vbos;
587 int old_num_vbos; /* for cleaning up */
588 struct vrend_vertex_buffer vbo[PIPE_MAX_ATTRIBS];
590 struct pipe_index_buffer ib;
591 uint32_t index_buffer_res_id;
593 bool vbo_dirty;
594 bool shader_dirty;
595 bool cs_shader_dirty;
596 bool stencil_state_dirty;
597 bool image_state_dirty;
598 bool blend_state_dirty;
600 uint32_t long_shader_in_progress_handle[PIPE_SHADER_TYPES];
601 struct vrend_shader_selector *shaders[PIPE_SHADER_TYPES];
602 struct vrend_linked_shader_program *prog;
604 GLuint prog_ids[PIPE_SHADER_TYPES];
605 struct vrend_shader_view views[PIPE_SHADER_TYPES];
607 struct vrend_constants consts[PIPE_SHADER_TYPES];
608 bool const_dirty[PIPE_SHADER_TYPES];
609 struct vrend_sampler_state *sampler_state[PIPE_SHADER_TYPES][PIPE_MAX_SAMPLERS];
611 struct pipe_constant_buffer cbs[PIPE_SHADER_TYPES][PIPE_MAX_CONSTANT_BUFFERS];
612 uint32_t const_bufs_used_mask[PIPE_SHADER_TYPES];
613 uint32_t const_bufs_dirty[PIPE_SHADER_TYPES];
615 int num_sampler_states[PIPE_SHADER_TYPES];
617 uint32_t sampler_views_dirty[PIPE_SHADER_TYPES];
619 uint32_t fb_id;
620 int nr_cbufs, old_nr_cbufs;
621 struct vrend_surface *zsurf;
622 struct vrend_surface *surf[PIPE_MAX_COLOR_BUFS];
624 struct vrend_viewport vps[PIPE_MAX_VIEWPORTS];
626 uint32_t scissor_state_dirty;
627 uint32_t viewport_state_dirty;
628 uint32_t viewport_state_initialized;
630 uint32_t fb_height;
632 struct pipe_scissor_state ss[PIPE_MAX_VIEWPORTS];
634 struct pipe_blend_state blend_state;
635 struct pipe_depth_stencil_alpha_state dsa_state;
636 struct pipe_rasterizer_state rs_state;
638 uint8_t stencil_refs[2];
639 bool viewport_is_negative;
642 bool inverted_fbo_content;
644 GLuint blit_fb_ids[2];
646 struct pipe_depth_stencil_alpha_state *dsa;
648 struct pipe_clip_state ucp_state;
650 bool depth_test_enabled;
651 bool alpha_test_enabled;
652 bool stencil_test_enabled;
653 bool framebuffer_srgb_enabled;
655 GLuint program_id;
656 int last_shader_idx;
658 GLint draw_indirect_buffer;
660 GLint draw_indirect_params_buffer;
662 struct pipe_rasterizer_state hw_rs_state;
663 struct pipe_blend_state hw_blend_state;
665 struct list_head streamout_list;
666 struct vrend_streamout_object *current_so;
668 struct pipe_blend_color blend_color;
670 uint32_t cond_render_q_id;
671 GLenum cond_render_gl_mode;
673 struct vrend_image_view image_views[PIPE_SHADER_TYPES][PIPE_MAX_SHADER_IMAGES];
674 uint32_t images_used_mask[PIPE_SHADER_TYPES];
676 struct vrend_ssbo ssbo[PIPE_SHADER_TYPES][PIPE_MAX_SHADER_BUFFERS];
677 uint32_t ssbo_used_mask[PIPE_SHADER_TYPES];
701 struct vrend_sub_context *sub; argument