| /xsrc/external/mit/MesaLib/dist/src/mesa/state_tracker/ |
| H A D | st_atom_shader.c | 83 update_gl_clamp(struct st_context *st, struct gl_program *prog, uint32_t *gl_clamp) argument 85 if (!st->emulate_gl_clamp) 95 (st->ctx->Texture.Unit[tex_unit]._Current->Target != GL_TEXTURE_BUFFER || 96 st->texture_buffer_sampler)) { 98 struct gl_context *ctx = st->ctx; 120 st_update_fp( struct st_context *st ) argument 124 assert(st->ctx->FragmentProgram._Current); 125 stfp = st_program(st->ctx->FragmentProgram._Current); 130 if (st->shader_has_one_variant[MESA_SHADER_FRAGMENT] && 140 key.st 203 st_update_vp(struct st_context * st) argument 276 st_update_common_program(struct st_context * st,struct gl_program * prog,unsigned pipe_shader,struct st_program ** dst) argument 339 st_update_gp(struct st_context * st) argument 349 st_update_tcp(struct st_context * st) argument 359 st_update_tep(struct st_context * st) argument 369 st_update_cp(struct st_context * st) argument [all...] |
| H A D | st_atom_msaa.c | 45 update_sample_locations(struct st_context *st) argument 47 struct gl_framebuffer *fb = st->ctx->DrawBuffer; 49 if (!st->ctx->Extensions.ARB_sample_locations) 54 unsigned samples = st->state.fb_num_samples; 60 st->screen->get_sample_pixel_grid(st->screen, samples, 66 * st->ctx->Driver.GetSamplePixelGrid() returns 1 for both dimensions. 83 if (st->state.fb_orientation == Y_0_BOTTOM) 93 st->screen, st 114 st_update_sample_state(struct st_context * st) argument 145 st_update_sample_shading(struct st_context * st) argument [all...] |
| H A D | st_cb_clear.h | 37 st_init_clear(struct st_context *st); 41 st_destroy_clear(struct st_context *st);
|
| H A D | st_cb_flush.c | 51 st_flush(struct st_context *st, argument 58 st_context_free_zombie_objects(st); 60 st_flush_bitmap_cache(st); 61 st->pipe->flush(st->pipe, fence, flags); 69 st_finish(struct st_context *st) argument 73 st_flush(st, &fence, PIPE_FLUSH_ASYNC | PIPE_FLUSH_HINT_FINISH); 76 st->screen->fence_finish(st->screen, NULL, fence, 78 st 92 struct st_context *st = st_context(ctx); local in function:st_glFlush 111 struct st_context *st = st_context(ctx); local in function:st_glFinish 141 struct st_context *st = data; local in function:st_device_reset_callback 158 struct st_context *st = st_context(ctx); local in function:st_get_graphics_reset_status 175 st_install_device_reset_callback(struct st_context * st) argument [all...] |
| H A D | st_atom_viewport.c | 50 st_update_viewport( struct st_context *st ) argument 52 struct gl_context *ctx = st->ctx; 57 for (i = 0; i < st->state.num_viewports; i++) { 58 float *scale = st->state.viewport[i].scale; 59 float *translate = st->state.viewport[i].translate; 65 if (st->state.fb_orientation == Y_0_TOP) { 67 translate[1] = st->state.fb_height - translate[1]; 70 st->state.viewport[i].swizzle_x = viewport_swizzle_from_glenum(ctx->ViewportArray[i].SwizzleX); 71 st->state.viewport[i].swizzle_y = viewport_swizzle_from_glenum(ctx->ViewportArray[i].SwizzleY); 72 st [all...] |
| H A D | st_atom_storagebuf.c | 44 st_bind_ssbos(struct st_context *st, struct gl_program *prog, argument 49 if (!prog || !st->pipe->set_shader_buffers) 57 binding = &st->ctx->ShaderStorageBufferBindings[ 78 st->pipe->set_shader_buffers(st->pipe, shader_type, 0, 84 if (!st->has_hw_atomics) 85 num_ssbos += st->last_used_atomic_bindings[shader_type]; 86 if (st->last_num_ssbos[shader_type] > num_ssbos) { 87 st->pipe->set_shader_buffers( 88 st 96 st_bind_vs_ssbos(struct st_context * st) argument 104 st_bind_fs_ssbos(struct st_context * st) argument 112 st_bind_gs_ssbos(struct st_context * st) argument 120 st_bind_tcs_ssbos(struct st_context * st) argument 128 st_bind_tes_ssbos(struct st_context * st) argument 136 st_bind_cs_ssbos(struct st_context * st) argument [all...] |
| H A D | st_context.c | 104 struct st_context *st = st_context(ctx); variable in typeref:struct:st_context * 109 st_update_debug_callback(st); 112 st->pipe->set_frontend_noop(st->pipe, ctx->IntelBlackholeRender); 180 st_invalidate_buffers(struct st_context *st) argument 182 st->dirty |= ST_NEW_BLEND | 211 struct st_context *st = st_context(ctx); local in function:st_invalidate_state 214 st_invalidate_buffers(st); 220 st->dirty |= ST_NEW_RASTERIZER; 223 st 302 st_save_zombie_sampler_view(struct st_context * st,struct pipe_sampler_view * view) argument 332 st_save_zombie_shader(struct st_context * st,enum pipe_shader_type type,struct pipe_shader_state * shader) argument 361 free_zombie_sampler_views(struct st_context * st) argument 391 free_zombie_shaders(struct st_context * st) argument 447 st_context_free_zombie_objects(struct st_context * st) argument 455 st_destroy_context_priv(struct st_context * st,bool destroy_pipe) argument 482 st_init_driver_flags(struct st_context * st) argument 584 struct st_context *st = ST_CALLOC_STRUCT( st_context); local in function:st_create_context_priv 905 struct st_context *st = ctx->st; local in function:st_emit_string_marker 914 struct st_context *st = ctx->st; local in function:st_set_background_context 1040 struct st_context *st; local in function:st_create_context 1093 struct st_context *st = (struct st_context *) userData; local in function:destroy_tex_sampler_cb 1102 struct st_context *st = (struct st_context *) userData; local in function:destroy_framebuffer_attachment_sampler_cb 1113 st_destroy_context(struct st_context * st) argument 1203 st_get_nir_compiler_options(struct st_context * st,gl_shader_stage stage) argument [all...] |
| H A D | st_atom_constbuf.c | 55 st_unbind_unused_cb0(struct st_context *st, enum pipe_shader_type shader_type) argument 57 if (st->state.constbuf0_enabled_shader_mask & (1 << shader_type)) { 58 struct pipe_context *pipe = st->pipe; 61 st->state.constbuf0_enabled_shader_mask &= ~(1 << shader_type); 70 st_upload_constants(struct st_context *st, struct gl_program *prog, gl_shader_stage stage) argument 74 st_unbind_unused_cb0(st, shader_type); 88 if (shader_type == PIPE_SHADER_FRAGMENT && st->fp->ati_fs) { 89 struct ati_fragment_shader *ati_fs = st->fp->ati_fs; 99 st->ctx->ATIFragmentShader.GlobalConstants[c], 107 st_make_bound_samplers_resident(st, pro 210 st_update_vs_constants(struct st_context * st) argument 219 st_update_fs_constants(struct st_context * st) argument 228 st_update_gs_constants(struct st_context * st) argument 236 st_update_tcs_constants(struct st_context * st) argument 244 st_update_tes_constants(struct st_context * st) argument 252 st_update_cs_constants(struct st_context * st) argument 258 st_bind_ubos(struct st_context * st,struct gl_program * prog,enum pipe_shader_type shader_type) argument 297 st_bind_vs_ubos(struct st_context * st) argument 306 st_bind_fs_ubos(struct st_context * st) argument 315 st_bind_gs_ubos(struct st_context * st) argument 324 st_bind_tcs_ubos(struct st_context * st) argument 333 st_bind_tes_ubos(struct st_context * st) argument 342 st_bind_cs_ubos(struct st_context * st) argument [all...] |
| H A D | st_cb_perfquery.h | 27 st_have_perfquery(struct st_context *st);
|
| H A D | st_atom.c | 42 typedef void (*update_func_t)(struct st_context *st); 53 void st_init_atoms( struct st_context *st ) argument 59 void st_destroy_atoms( struct st_context *st ) argument 67 static void check_program_state( struct st_context *st ) argument 69 struct gl_context *ctx = st->ctx; 70 struct st_program *old_vp = st->vp; 71 struct st_program *old_tcp = st->tcp; 72 struct st_program *old_tep = st->tep; 73 struct st_program *old_gp = st->gp; 74 struct st_program *old_fp = st 143 st_update_edgeflags(struct st_context * st,bool per_vertex_edgeflags) argument 165 check_attrib_edgeflag(struct st_context * st) argument 175 st_validate_state(struct st_context * st,enum st_pipeline pipeline) argument [all...] |
| H A D | st_atom_clip.c | 44 void st_update_clip( struct st_context *st ) argument 47 const struct gl_context *ctx = st->ctx; 64 if (memcmp(&st->state.clip, &clip, sizeof(clip)) != 0) { 65 st->state.clip = clip; 66 st->pipe->set_clip_state(st->pipe, &clip);
|
| H A D | st_atom_atomicbuf.c | 68 st_bind_atomics(struct st_context *st, struct gl_program *prog, argument 74 if (!prog || !st->pipe->set_shader_buffers || st->has_hw_atomics) 87 st_binding_to_sb(&st->ctx->AtomicBufferBindings[atomic->Binding], &sb); 89 st->pipe->set_shader_buffers(st->pipe, shader_type, 93 st->last_used_atomic_bindings[shader_type] = used_bindings; 97 st_bind_vs_atomics(struct st_context *st) argument 100 st->ctx->_Shader->CurrentProgram[MESA_SHADER_VERTEX]; 102 st_bind_atomics(st, pro 106 st_bind_fs_atomics(struct st_context * st) argument 115 st_bind_gs_atomics(struct st_context * st) argument 124 st_bind_tcs_atomics(struct st_context * st) argument 133 st_bind_tes_atomics(struct st_context * st) argument 142 st_bind_cs_atomics(struct st_context * st) argument 155 st_bind_hw_atomic_buffers(struct st_context * st) argument [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/mesa/state_tracker/ |
| H A D | st_atom_viewport.c | 44 st_update_viewport( struct st_context *st ) argument 46 struct gl_context *ctx = st->ctx; 51 for (i = 0; i < st->state.num_viewports; i++) { 52 float *scale = st->state.viewport[i].scale; 53 float *translate = st->state.viewport[i].translate; 59 if (st->state.fb_orientation == Y_0_TOP) { 61 translate[1] = st->state.fb_height - translate[1]; 65 cso_set_viewport(st->cso_context, &st->state.viewport[0]); 67 if (st [all...] |
| H A D | st_atom_msaa.c | 45 update_sample_locations(struct st_context *st) argument 47 struct gl_framebuffer *fb = st->ctx->DrawBuffer; 49 if (!st->ctx->Extensions.ARB_sample_locations) 54 unsigned samples = st->state.fb_num_samples; 60 st->pipe->screen->get_sample_pixel_grid( 61 st->pipe->screen, samples, &grid_width, &grid_height); 66 * st->ctx->Driver.GetSamplePixelGrid() returns 1 for both dimensions. 83 if (st->state.fb_orientation == Y_0_BOTTOM) 93 st->pipe->screen, st 114 st_update_sample_state(struct st_context * st) argument 145 st_update_sample_shading(struct st_context * st) argument [all...] |
| H A D | st_atom_atomicbuf.c | 68 st_bind_atomics(struct st_context *st, struct gl_program *prog, argument 73 if (!prog || !st->pipe->set_shader_buffers || st->has_hw_atomics) 81 st_binding_to_sb(&st->ctx->AtomicBufferBindings[atomic->Binding], &sb); 83 st->pipe->set_shader_buffers(st->pipe, shader_type, 89 st_bind_vs_atomics(struct st_context *st) argument 92 st->ctx->_Shader->CurrentProgram[MESA_SHADER_VERTEX]; 94 st_bind_atomics(st, prog, PIPE_SHADER_VERTEX); 98 st_bind_fs_atomics(struct st_context *st) argument 107 st_bind_gs_atomics(struct st_context * st) argument 116 st_bind_tcs_atomics(struct st_context * st) argument 125 st_bind_tes_atomics(struct st_context * st) argument 134 st_bind_cs_atomics(struct st_context * st) argument 147 st_bind_hw_atomic_buffers(struct st_context * st) argument [all...] |
| H A D | st_cb_clear.h | 37 st_init_clear(struct st_context *st); 41 st_destroy_clear(struct st_context *st);
|
| H A D | st_atom_shader.c | 97 st_update_fp( struct st_context *st ) argument 101 assert(st->ctx->FragmentProgram._Current); 102 stfp = st_fragment_program(st->ctx->FragmentProgram._Current); 107 if (st->shader_has_one_variant[MESA_SHADER_FRAGMENT] && 120 key.st = st->has_shareable_shaders ? NULL : st; 123 key.clamp_color = st->clamp_frag_color_in_shader && 124 st->ctx->Color._ClampFragmentColor; 128 st 158 st_update_vp(struct st_context * st) argument 207 st_update_common_program(struct st_context * st,struct gl_program * prog,unsigned pipe_shader,struct st_common_program ** dst) argument 228 st_update_gp(struct st_context * st) argument 238 st_update_tcp(struct st_context * st) argument 248 st_update_tep(struct st_context * st) argument 258 st_update_cp(struct st_context * st) argument [all...] |
| H A D | st_cb_flush.c | 51 st_flush(struct st_context *st, argument 55 st_flush_bitmap_cache(st); 60 st_context_free_zombie_objects(st); 62 st->pipe->flush(st->pipe, fence, flags); 70 st_finish(struct st_context *st) argument 74 st_flush(st, &fence, PIPE_FLUSH_ASYNC | PIPE_FLUSH_HINT_FINISH); 77 st->pipe->screen->fence_finish(st->pipe->screen, NULL, fence, 79 st 93 struct st_context *st = st_context(ctx); local in function:st_glFlush 112 struct st_context *st = st_context(ctx); local in function:st_glFinish 147 struct st_context *st = st_context(ctx); local in function:st_get_graphics_reset_status 164 struct st_context *st = data; local in function:st_device_reset_callback 174 st_install_device_reset_callback(struct st_context * st) argument [all...] |
| H A D | st_atom_storagebuf.c | 44 st_bind_ssbos(struct st_context *st, struct gl_program *prog, argument 51 if (!prog || !st->pipe->set_shader_buffers) 54 c = &st->ctx->Const.Program[prog->info.stage]; 56 buffer_base = st->has_hw_atomics ? 0 : c->MaxAtomicBuffers; 63 binding = &st->ctx->ShaderStorageBufferBindings[ 84 st->pipe->set_shader_buffers(st->pipe, shader_type, buffer_base, 89 st->pipe->set_shader_buffers( 90 st->pipe, shader_type, 96 void st_bind_vs_ssbos(struct st_context *st) argument 104 st_bind_fs_ssbos(struct st_context * st) argument 112 st_bind_gs_ssbos(struct st_context * st) argument 120 st_bind_tcs_ssbos(struct st_context * st) argument 128 st_bind_tes_ssbos(struct st_context * st) argument 136 st_bind_cs_ssbos(struct st_context * st) argument [all...] |
| H A D | st_atom_clip.c | 44 void st_update_clip( struct st_context *st ) argument 47 const struct gl_context *ctx = st->ctx; 64 if (memcmp(&st->state.clip, &clip, sizeof(clip)) != 0) { 65 st->state.clip = clip; 66 st->pipe->set_clip_state(st->pipe, &clip);
|
| H A D | st_atom_constbuf.c | 56 st_upload_constants(struct st_context *st, struct gl_program *prog) argument 70 if (shader_type == PIPE_SHADER_FRAGMENT && st->fp->ati_fs) { 71 struct ati_fragment_shader *ati_fs = st->fp->ati_fs; 81 st->ctx->ATIFragmentShader.GlobalConstants[c], 89 st_make_bound_samplers_resident(st, prog); 90 st_make_bound_images_resident(st, prog); 103 _mesa_load_state_parameters(st->ctx, params); 105 _mesa_shader_write_subroutine_indices(st->ctx, stage); 119 cso_set_constant_buffer(st->cso_context, shader_type, 0, &cb); 122 st 138 st_update_vs_constants(struct st_context * st) argument 147 st_update_fs_constants(struct st_context * st) argument 156 st_update_gs_constants(struct st_context * st) argument 167 st_update_tcs_constants(struct st_context * st) argument 178 st_update_tes_constants(struct st_context * st) argument 189 st_update_cs_constants(struct st_context * st) argument 198 st_bind_ubos(struct st_context * st,struct gl_program * prog,enum pipe_shader_type shader_type) argument 237 st_bind_vs_ubos(struct st_context * st) argument 246 st_bind_fs_ubos(struct st_context * st) argument 255 st_bind_gs_ubos(struct st_context * st) argument 264 st_bind_tcs_ubos(struct st_context * st) argument 273 st_bind_tes_ubos(struct st_context * st) argument 282 st_bind_cs_ubos(struct st_context * st) argument [all...] |
| H A D | st_atom.c | 42 typedef void (*update_func_t)(struct st_context *st); 53 void st_init_atoms( struct st_context *st ) argument 59 void st_destroy_atoms( struct st_context *st ) argument 67 static void check_program_state( struct st_context *st ) argument 69 struct gl_context *ctx = st->ctx; 70 struct st_vertex_program *old_vp = st->vp; 71 struct st_common_program *old_tcp = st->tcp; 72 struct st_common_program *old_tep = st->tep; 73 struct st_common_program *old_gp = st->gp; 74 struct st_fragment_program *old_fp = st 142 check_attrib_edgeflag(struct st_context * st) argument 172 st_validate_state(struct st_context * st,enum st_pipeline pipeline) argument [all...] |
| H A D | st_context.c | 100 struct st_context *st = st_context(ctx); variable in typeref:struct:st_context * 105 st_update_debug_callback(st); 173 st_invalidate_buffers(struct st_context *st) argument 175 st->dirty |= ST_NEW_BLEND | 204 struct st_context *st = st_context(ctx); local in function:st_invalidate_state 207 st_invalidate_buffers(st); 213 st->dirty |= ST_NEW_RASTERIZER; 216 st->dirty |= ST_NEW_FS_STATE; 219 if (st->clamp_frag_color_in_shader) 220 st 275 st_save_zombie_sampler_view(struct st_context * st,struct pipe_sampler_view * view) argument 305 st_save_zombie_shader(struct st_context * st,enum pipe_shader_type type,struct pipe_shader_state * shader) argument 334 free_zombie_sampler_views(struct st_context * st) argument 364 free_zombie_shaders(struct st_context * st) argument 414 st_context_free_zombie_objects(struct st_context * st) argument 422 st_destroy_context_priv(struct st_context * st,bool destroy_pipe) argument 455 st_init_driver_flags(struct st_context * st) argument 527 struct st_context *st = ST_CALLOC_STRUCT( st_context); local in function:st_create_context_priv 740 struct st_context *st = ctx->st; local in function:st_emit_string_marker 749 struct st_context *st = ctx->st; local in function:st_set_background_context 863 struct st_context *st; local in function:st_create_context 911 struct st_context *st = (struct st_context *) userData; local in function:destroy_tex_sampler_cb 920 struct st_context *st = (struct st_context *) userData; local in function:destroy_framebuffer_attachment_sampler_cb 931 st_destroy_context(struct st_context * st) argument [all...] |
| H A D | st_atom_constbuf.h | 38 void st_upload_constants(struct st_context *st, struct gl_program *prog);
|
| H A D | st_cb_drawtex.h | 20 st_destroy_drawtex(struct st_context *st);
|