| /xsrc/external/mit/MesaLib/dist/src/mesa/state_tracker/ |
| st_atom_shader.c | 83 update_gl_clamp(struct st_context *st, struct gl_program *prog, uint32_t *gl_clamp) 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 ) 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 = st->has_shareable_shaders ? NULL : st [all...] |
| st_atom_msaa.c | 45 update_sample_locations(struct st_context *st) 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->state.fb_height, samples, locations) [all...] |
| st_cb_clear.h | 37 st_init_clear(struct st_context *st); 41 st_destroy_clear(struct st_context *st);
|
| st_cb_flush.c | 51 st_flush(struct st_context *st, 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) 73 st_flush(st, &fence, PIPE_FLUSH_ASYNC | PIPE_FLUSH_HINT_FINISH); 76 st->screen->fence_finish(st->screen, NULL, fence, 78 st->screen->fence_reference(st->screen, &fence, NULL) 92 struct st_context *st = st_context(ctx); local 111 struct st_context *st = st_context(ctx); local 141 struct st_context *st = data; local 158 struct st_context *st = st_context(ctx); local [all...] |
| st_atom_viewport.c | 50 st_update_viewport( struct st_context *st ) 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->state.viewport[i].swizzle_z = viewport_swizzle_from_glenum(ctx->ViewportArray[i].SwizzleZ) [all...] |
| st_atom_storagebuf.c | 44 st_bind_ssbos(struct st_context *st, struct gl_program *prog, 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->pipe, shader_type [all...] |
| st_context.c | 104 struct st_context *st = st_context(ctx); local 109 st_update_debug_callback(st); 112 st->pipe->set_frontend_noop(st->pipe, ctx->IntelBlackholeRender); 180 st_invalidate_buffers(struct st_context *st) 182 st->dirty |= ST_NEW_BLEND | 211 struct st_context *st = st_context(ctx); local 214 st_invalidate_buffers(st); 220 st->dirty |= ST_NEW_RASTERIZER; 223 st->dirty |= ST_NEW_FS_STATE 584 struct st_context *st = ST_CALLOC_STRUCT( st_context); local 905 struct st_context *st = ctx->st; local 914 struct st_context *st = ctx->st; local 1040 struct st_context *st; local 1093 struct st_context *st = (struct st_context *) userData; local 1102 struct st_context *st = (struct st_context *) userData; local [all...] |
| st_atom_constbuf.c | 55 st_unbind_unused_cb0(struct st_context *st, enum pipe_shader_type shader_type) 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) 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, prog) [all...] |
| st_cb_perfquery.h | 27 st_have_perfquery(struct st_context *st);
|
| st_atom_clip.c | 44 void st_update_clip( struct st_context *st ) 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);
|
| st_atom.c | 42 typedef void (*update_func_t)(struct st_context *st); 53 void st_init_atoms( struct st_context *st ) 59 void st_destroy_atoms( struct st_context *st ) 67 static void check_program_state( struct st_context *st ) 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->fp [all...] |
| st_atom_atomicbuf.c | 68 st_bind_atomics(struct st_context *st, struct gl_program *prog, 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) 100 st->ctx->_Shader->CurrentProgram[MESA_SHADER_VERTEX]; 102 st_bind_atomics(st, prog, MESA_SHADER_VERTEX) [all...] |
| st_cb_drawtex.h | 20 st_destroy_drawtex(struct st_context *st);
|
| /xsrc/external/mit/MesaLib.old/dist/src/mesa/state_tracker/ |
| st_atom_viewport.c | 44 st_update_viewport( struct st_context *st ) 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->state.num_viewports > 1) [all...] |
| st_atom_msaa.c | 45 update_sample_locations(struct st_context *st) 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->state.fb_height, samples, locations) [all...] |
| st_atom_atomicbuf.c | 68 st_bind_atomics(struct st_context *st, struct gl_program *prog, 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) 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) [all...] |
| st_cb_clear.h | 37 st_init_clear(struct st_context *st); 41 st_destroy_clear(struct st_context *st);
|
| st_atom_shader.c | 97 st_update_fp( struct st_context *st ) 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->force_persample_in_shader & [all...] |
| st_cb_flush.c | 51 st_flush(struct st_context *st, 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) 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->pipe->screen->fence_reference(st->pipe->screen, &fence, NULL) 93 struct st_context *st = st_context(ctx); local 112 struct st_context *st = st_context(ctx); local 147 struct st_context *st = st_context(ctx); local 164 struct st_context *st = data; local [all...] |
| st_atom_storagebuf.c | 44 st_bind_ssbos(struct st_context *st, struct gl_program *prog, 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) [all...] |
| st_atom_clip.c | 44 void st_update_clip( struct st_context *st ) 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);
|
| st_atom_constbuf.c | 56 st_upload_constants(struct st_context *st, struct gl_program *prog) 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->state.constants[shader_type].ptr = params->ParameterValues [all...] |
| st_atom.c | 42 typedef void (*update_func_t)(struct st_context *st); 53 void st_init_atoms( struct st_context *st ) 59 void st_destroy_atoms( struct st_context *st ) 67 static void check_program_state( struct st_context *st ) 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->fp [all...] |
| st_context.c | 100 struct st_context *st = st_context(ctx); local 105 st_update_debug_callback(st); 173 st_invalidate_buffers(struct st_context *st) 175 st->dirty |= ST_NEW_BLEND | 204 struct st_context *st = st_context(ctx); local 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->dirty |= ST_NEW_FS_STATE 527 struct st_context *st = ST_CALLOC_STRUCT( st_context); local 740 struct st_context *st = ctx->st; local 749 struct st_context *st = ctx->st; local 863 struct st_context *st; local 911 struct st_context *st = (struct st_context *) userData; local 920 struct st_context *st = (struct st_context *) userData; local [all...] |
| st_atom_constbuf.h | 38 void st_upload_constants(struct st_context *st, struct gl_program *prog);
|