/external/mesa3d/src/gallium/drivers/nouveau/nv30/ |
D | nv30_state.c | 40 const struct pipe_blend_state *cso) in nv30_blend_state_create() argument 50 so->pipe = *cso; in nv30_blend_state_create() 52 if (cso->logicop_enable) { in nv30_blend_state_create() 55 SB_DATA (so, nvgl_logicop_func(cso->logicop_func)); in nv30_blend_state_create() 62 SB_DATA (so, cso->dither); in nv30_blend_state_create() 64 blend[0] = cso->rt[0].blend_enable; in nv30_blend_state_create() 65 cmask[0] = !!(cso->rt[0].colormask & PIPE_MASK_A) << 24 | in nv30_blend_state_create() 66 !!(cso->rt[0].colormask & PIPE_MASK_R) << 16 | in nv30_blend_state_create() 67 !!(cso->rt[0].colormask & PIPE_MASK_G) << 8 | in nv30_blend_state_create() 68 !!(cso->rt[0].colormask & PIPE_MASK_B); in nv30_blend_state_create() [all …]
|
D | nv30_texture.c | 62 filter_mode(const struct pipe_sampler_state *cso) in filter_mode() argument 66 switch (cso->mag_img_filter) { in filter_mode() 75 switch (cso->min_img_filter) { in filter_mode() 77 switch (cso->min_mip_filter) { in filter_mode() 90 switch (cso->min_mip_filter) { in filter_mode() 108 compare_mode(const struct pipe_sampler_state *cso) in compare_mode() argument 110 if (cso->compare_mode != PIPE_TEX_COMPARE_R_TO_TEXTURE) in compare_mode() 113 switch (cso->compare_func) { in compare_mode() 129 const struct pipe_sampler_state *cso) in nv30_sampler_state_create() argument 139 so->pipe = *cso; in nv30_sampler_state_create() [all …]
|
/external/mesa3d/src/gallium/drivers/freedreno/a2xx/ |
D | fd2_rasterizer.c | 41 const struct pipe_rasterizer_state *cso) in fd2_rasterizer_state_create() argument 50 if (cso->point_size_per_vertex) { in fd2_rasterizer_state_create() 51 psize_min = util_get_min_point_size(cso); in fd2_rasterizer_state_create() 55 psize_min = cso->point_size; in fd2_rasterizer_state_create() 56 psize_max = cso->point_size; in fd2_rasterizer_state_create() 59 so->base = *cso; in fd2_rasterizer_state_create() 61 so->pa_sc_line_stipple = cso->line_stipple_enable ? in fd2_rasterizer_state_create() 62 A2XX_PA_SC_LINE_STIPPLE_LINE_PATTERN(cso->line_stipple_pattern) | in fd2_rasterizer_state_create() 63 A2XX_PA_SC_LINE_STIPPLE_REPEAT_COUNT(cso->line_stipple_factor) : 0; in fd2_rasterizer_state_create() 68 A2XX_PA_SU_VTX_CNTL_PIX_CENTER(cso->half_pixel_center ? PIXCENTER_OGL : PIXCENTER_D3D) | in fd2_rasterizer_state_create() [all …]
|
D | fd2_texture.c | 79 const struct pipe_sampler_state *cso) in fd2_sampler_state_create() argument 86 so->base = *cso; in fd2_sampler_state_create() 90 A2XX_SQ_TEX_0_CLAMP_X(tex_clamp(cso->wrap_s)) | in fd2_sampler_state_create() 91 A2XX_SQ_TEX_0_CLAMP_Y(tex_clamp(cso->wrap_t)) | in fd2_sampler_state_create() 92 A2XX_SQ_TEX_0_CLAMP_Z(tex_clamp(cso->wrap_r)); in fd2_sampler_state_create() 95 A2XX_SQ_TEX_3_XY_MAG_FILTER(tex_filter(cso->mag_img_filter)) | in fd2_sampler_state_create() 96 A2XX_SQ_TEX_3_XY_MIN_FILTER(tex_filter(cso->min_img_filter)); in fd2_sampler_state_create() 128 const struct pipe_sampler_view *cso) in fd2_sampler_view_create() argument 136 so->base = *cso; in fd2_sampler_view_create() 142 so->fmt = fd2_pipe2surface(cso->format); in fd2_sampler_view_create() [all …]
|
D | fd2_zsa.c | 40 const struct pipe_depth_stencil_alpha_state *cso) in fd2_zsa_state_create() argument 48 so->base = *cso; in fd2_zsa_state_create() 51 A2XX_RB_DEPTHCONTROL_ZFUNC(cso->depth.func); /* maps 1:1 */ in fd2_zsa_state_create() 53 if (cso->depth.enabled) in fd2_zsa_state_create() 55 if (cso->depth.writemask) in fd2_zsa_state_create() 58 if (cso->stencil[0].enabled) { in fd2_zsa_state_create() 59 const struct pipe_stencil_state *s = &cso->stencil[0]; in fd2_zsa_state_create() 72 if (cso->stencil[1].enabled) { in fd2_zsa_state_create() 73 const struct pipe_stencil_state *bs = &cso->stencil[1]; in fd2_zsa_state_create() 88 if (cso->alpha.enabled) { in fd2_zsa_state_create() [all …]
|
/external/mesa3d/src/gallium/drivers/freedreno/a4xx/ |
D | fd4_texture.c | 87 const struct pipe_sampler_state *cso) in fd4_sampler_state_create() argument 90 unsigned aniso = util_last_bit(MIN2(cso->max_anisotropy >> 1, 8)); in fd4_sampler_state_create() 97 if (cso->min_mip_filter == PIPE_TEX_MIPFILTER_LINEAR) in fd4_sampler_state_create() 100 so->base = *cso; in fd4_sampler_state_create() 110 clamp_to_edge = (cso->min_img_filter == PIPE_TEX_FILTER_NEAREST); in fd4_sampler_state_create() 112 so->saturate_s = (cso->wrap_s == PIPE_TEX_WRAP_CLAMP); in fd4_sampler_state_create() 113 so->saturate_t = (cso->wrap_t == PIPE_TEX_WRAP_CLAMP); in fd4_sampler_state_create() 114 so->saturate_r = (cso->wrap_r == PIPE_TEX_WRAP_CLAMP); in fd4_sampler_state_create() 120 A4XX_TEX_SAMP_0_XY_MAG(tex_filter(cso->mag_img_filter, aniso)) | in fd4_sampler_state_create() 121 A4XX_TEX_SAMP_0_XY_MIN(tex_filter(cso->min_img_filter, aniso)) | in fd4_sampler_state_create() [all …]
|
D | fd4_rasterizer.c | 40 const struct pipe_rasterizer_state *cso) in fd4_rasterizer_state_create() argument 49 so->base = *cso; in fd4_rasterizer_state_create() 51 if (cso->point_size_per_vertex) { in fd4_rasterizer_state_create() 52 psize_min = util_get_min_point_size(cso); in fd4_rasterizer_state_create() 56 psize_min = cso->point_size; in fd4_rasterizer_state_create() 57 psize_max = cso->point_size; in fd4_rasterizer_state_create() 72 so->gras_su_point_size = A4XX_GRAS_SU_POINT_SIZE(cso->point_size); in fd4_rasterizer_state_create() 74 A4XX_GRAS_SU_POLY_OFFSET_SCALE(cso->offset_scale); in fd4_rasterizer_state_create() 76 A4XX_GRAS_SU_POLY_OFFSET_OFFSET(cso->offset_units); in fd4_rasterizer_state_create() 79 A4XX_GRAS_SU_MODE_CONTROL_LINEHALFWIDTH(cso->line_width/2.0); in fd4_rasterizer_state_create() [all …]
|
D | fd4_zsa.c | 40 const struct pipe_depth_stencil_alpha_state *cso) in fd4_zsa_state_create() argument 48 so->base = *cso; in fd4_zsa_state_create() 51 A4XX_RB_DEPTH_CONTROL_ZFUNC(cso->depth.func); /* maps 1:1 */ in fd4_zsa_state_create() 53 if (cso->depth.enabled) in fd4_zsa_state_create() 58 if (cso->depth.writemask) in fd4_zsa_state_create() 61 if (cso->stencil[0].enabled) { in fd4_zsa_state_create() 62 const struct pipe_stencil_state *s = &cso->stencil[0]; in fd4_zsa_state_create() 78 if (cso->stencil[1].enabled) { in fd4_zsa_state_create() 79 const struct pipe_stencil_state *bs = &cso->stencil[1]; in fd4_zsa_state_create() 94 if (cso->alpha.enabled) { in fd4_zsa_state_create() [all …]
|
/external/mesa3d/src/gallium/drivers/freedreno/a5xx/ |
D | fd5_texture.c | 85 const struct pipe_sampler_state *cso) in fd5_sampler_state_create() argument 88 unsigned aniso = util_last_bit(MIN2(cso->max_anisotropy >> 1, 8)); in fd5_sampler_state_create() 95 so->base = *cso; in fd5_sampler_state_create() 97 if (cso->min_mip_filter == PIPE_TEX_MIPFILTER_LINEAR) in fd5_sampler_state_create() 108 clamp_to_edge = (cso->min_img_filter == PIPE_TEX_FILTER_NEAREST); in fd5_sampler_state_create() 110 so->saturate_s = (cso->wrap_s == PIPE_TEX_WRAP_CLAMP); in fd5_sampler_state_create() 111 so->saturate_t = (cso->wrap_t == PIPE_TEX_WRAP_CLAMP); in fd5_sampler_state_create() 112 so->saturate_r = (cso->wrap_r == PIPE_TEX_WRAP_CLAMP); in fd5_sampler_state_create() 118 A5XX_TEX_SAMP_0_XY_MAG(tex_filter(cso->mag_img_filter, aniso)) | in fd5_sampler_state_create() 119 A5XX_TEX_SAMP_0_XY_MIN(tex_filter(cso->min_img_filter, aniso)) | in fd5_sampler_state_create() [all …]
|
D | fd5_rasterizer.c | 38 const struct pipe_rasterizer_state *cso) in fd5_rasterizer_state_create() argument 47 so->base = *cso; in fd5_rasterizer_state_create() 49 if (cso->point_size_per_vertex) { in fd5_rasterizer_state_create() 50 psize_min = util_get_min_point_size(cso); in fd5_rasterizer_state_create() 54 psize_min = cso->point_size; in fd5_rasterizer_state_create() 55 psize_max = cso->point_size; in fd5_rasterizer_state_create() 62 so->gras_su_point_size = A5XX_GRAS_SU_POINT_SIZE(cso->point_size); in fd5_rasterizer_state_create() 64 A5XX_GRAS_SU_POLY_OFFSET_SCALE(cso->offset_scale); in fd5_rasterizer_state_create() 66 A5XX_GRAS_SU_POLY_OFFSET_OFFSET(cso->offset_units); in fd5_rasterizer_state_create() 68 A5XX_GRAS_SU_POLY_OFFSET_OFFSET_CLAMP(cso->offset_clamp); in fd5_rasterizer_state_create() [all …]
|
D | fd5_zsa.c | 38 const struct pipe_depth_stencil_alpha_state *cso) in fd5_zsa_state_create() argument 46 so->base = *cso; in fd5_zsa_state_create() 49 A5XX_RB_DEPTH_CNTL_ZFUNC(cso->depth.func); /* maps 1:1 */ in fd5_zsa_state_create() 51 if (cso->depth.enabled) in fd5_zsa_state_create() 56 if (cso->depth.writemask) in fd5_zsa_state_create() 59 if (cso->stencil[0].enabled) { in fd5_zsa_state_create() 60 const struct pipe_stencil_state *s = &cso->stencil[0]; in fd5_zsa_state_create() 73 if (cso->stencil[1].enabled) { in fd5_zsa_state_create() 74 const struct pipe_stencil_state *bs = &cso->stencil[1]; in fd5_zsa_state_create() 88 if (cso->alpha.enabled) { in fd5_zsa_state_create() [all …]
|
/external/mesa3d/src/gallium/drivers/freedreno/a3xx/ |
D | fd3_texture.c | 87 const struct pipe_sampler_state *cso) in fd3_sampler_state_create() argument 90 unsigned aniso = util_last_bit(MIN2(cso->max_anisotropy >> 1, 8)); in fd3_sampler_state_create() 97 if (cso->min_mip_filter == PIPE_TEX_MIPFILTER_LINEAR) in fd3_sampler_state_create() 100 so->base = *cso; in fd3_sampler_state_create() 110 clamp_to_edge = (cso->min_img_filter == PIPE_TEX_FILTER_NEAREST); in fd3_sampler_state_create() 112 so->saturate_s = (cso->wrap_s == PIPE_TEX_WRAP_CLAMP); in fd3_sampler_state_create() 113 so->saturate_t = (cso->wrap_t == PIPE_TEX_WRAP_CLAMP); in fd3_sampler_state_create() 114 so->saturate_r = (cso->wrap_r == PIPE_TEX_WRAP_CLAMP); in fd3_sampler_state_create() 119 COND(!cso->normalized_coords, A3XX_TEX_SAMP_0_UNNORM_COORDS) | in fd3_sampler_state_create() 120 COND(!cso->seamless_cube_map, A3XX_TEX_SAMP_0_CUBEMAPSEAMLESSFILTOFF) | in fd3_sampler_state_create() [all …]
|
D | fd3_rasterizer.c | 40 const struct pipe_rasterizer_state *cso) in fd3_rasterizer_state_create() argument 49 so->base = *cso; in fd3_rasterizer_state_create() 51 if (cso->point_size_per_vertex) { in fd3_rasterizer_state_create() 52 psize_min = util_get_min_point_size(cso); in fd3_rasterizer_state_create() 56 psize_min = cso->point_size; in fd3_rasterizer_state_create() 57 psize_max = cso->point_size; in fd3_rasterizer_state_create() 69 COND(cso->clip_halfz, A3XX_GRAS_CL_CLIP_CNTL_ZERO_GB_SCALE_Z); in fd3_rasterizer_state_create() 73 so->gras_su_point_size = A3XX_GRAS_SU_POINT_SIZE(cso->point_size); in fd3_rasterizer_state_create() 75 A3XX_GRAS_SU_POLY_OFFSET_SCALE_VAL(cso->offset_scale); in fd3_rasterizer_state_create() 77 A3XX_GRAS_SU_POLY_OFFSET_OFFSET(cso->offset_units * 2.0f); in fd3_rasterizer_state_create() [all …]
|
D | fd3_zsa.c | 40 const struct pipe_depth_stencil_alpha_state *cso) in fd3_zsa_state_create() argument 48 so->base = *cso; in fd3_zsa_state_create() 51 A3XX_RB_DEPTH_CONTROL_ZFUNC(cso->depth.func); /* maps 1:1 */ in fd3_zsa_state_create() 53 if (cso->depth.enabled) in fd3_zsa_state_create() 58 if (cso->depth.writemask) in fd3_zsa_state_create() 61 if (cso->stencil[0].enabled) { in fd3_zsa_state_create() 62 const struct pipe_stencil_state *s = &cso->stencil[0]; in fd3_zsa_state_create() 76 if (cso->stencil[1].enabled) { in fd3_zsa_state_create() 77 const struct pipe_stencil_state *bs = &cso->stencil[1]; in fd3_zsa_state_create() 92 if (cso->alpha.enabled) { in fd3_zsa_state_create() [all …]
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_tests.c | 66 util_set_framebuffer_cb0(struct cso_context *cso, struct pipe_context *ctx, in util_set_framebuffer_cb0() argument 80 cso_set_framebuffer(cso, &fb); in util_set_framebuffer_cb0() 85 util_set_blend_normal(struct cso_context *cso) in util_set_blend_normal() argument 90 cso_set_blend(cso, &blend); in util_set_blend_normal() 94 util_set_dsa_disable(struct cso_context *cso) in util_set_dsa_disable() argument 98 cso_set_depth_stencil_alpha(cso, &dsa); in util_set_dsa_disable() 102 util_set_rasterizer_normal(struct cso_context *cso) in util_set_rasterizer_normal() argument 110 cso_set_rasterizer(cso, &rs); in util_set_rasterizer_normal() 114 util_set_max_viewport(struct cso_context *cso, struct pipe_resource *tex) in util_set_max_viewport() argument 125 cso_set_viewport(cso, &viewport); in util_set_max_viewport() [all …]
|
/external/mesa3d/src/gallium/auxiliary/cso_cache/ |
D | cso_context.c | 130 struct cso_blend *cso = (struct cso_blend *)state; in delete_blend_state() local 132 if (ctx->blend == cso->data) in delete_blend_state() 135 if (cso->delete_state) in delete_blend_state() 136 cso->delete_state(cso->context, cso->data); in delete_blend_state() 143 struct cso_depth_stencil_alpha *cso = in delete_depth_stencil_state() local 146 if (ctx->depth_stencil == cso->data) in delete_depth_stencil_state() 149 if (cso->delete_state) in delete_depth_stencil_state() 150 cso->delete_state(cso->context, cso->data); in delete_depth_stencil_state() 158 struct cso_sampler *cso = (struct cso_sampler *)state; in delete_sampler_state() local 159 if (cso->delete_state) in delete_sampler_state() [all …]
|
D | cso_context.h | 45 void cso_destroy_context( struct cso_context *cso ); 48 enum pipe_error cso_set_blend( struct cso_context *cso, 52 enum pipe_error cso_set_depth_stencil_alpha( struct cso_context *cso, 57 enum pipe_error cso_set_rasterizer( struct cso_context *cso, 62 cso_set_samplers(struct cso_context *cso, 72 cso_single_sampler(struct cso_context *cso, unsigned shader_stage, 76 cso_single_sampler_done(struct cso_context *cso, 130 void cso_set_framebuffer(struct cso_context *cso, 134 void cso_set_viewport(struct cso_context *cso, 140 void cso_set_blend_color(struct cso_context *cso, [all …]
|
D | cso_cache.c | 92 struct cso_blend *cso = (struct cso_blend *)state; in delete_blend_state() local 93 if (cso->delete_state) in delete_blend_state() 94 cso->delete_state(cso->context, cso->data); in delete_blend_state() 100 struct cso_depth_stencil_alpha *cso = (struct cso_depth_stencil_alpha *)state; in delete_depth_stencil_state() local 101 if (cso->delete_state) in delete_depth_stencil_state() 102 cso->delete_state(cso->context, cso->data); in delete_depth_stencil_state() 108 struct cso_sampler *cso = (struct cso_sampler *)state; in delete_sampler_state() local 109 if (cso->delete_state) in delete_sampler_state() 110 cso->delete_state(cso->context, cso->data); in delete_sampler_state() 116 struct cso_rasterizer *cso = (struct cso_rasterizer *)state; in delete_rasterizer_state() local [all …]
|
/external/mesa3d/src/gallium/drivers/nouveau/nv50/ |
D | nv50_state.c | 117 const struct pipe_blend_state *cso) in nv50_blend_state_create() argument 121 bool emit_common_func = cso->rt[0].blend_enable; in nv50_blend_state_create() 126 SB_DATA (so, cso->independent_blend_enable); in nv50_blend_state_create() 129 so->pipe = *cso; in nv50_blend_state_create() 132 SB_DATA (so, !cso->independent_blend_enable); in nv50_blend_state_create() 135 SB_DATA (so, !cso->independent_blend_enable); in nv50_blend_state_create() 137 if (cso->independent_blend_enable) { in nv50_blend_state_create() 140 SB_DATA(so, cso->rt[i].blend_enable); in nv50_blend_state_create() 141 if (cso->rt[i].blend_enable) in nv50_blend_state_create() 149 if (!cso->rt[i].blend_enable) in nv50_blend_state_create() [all …]
|
/external/mesa3d/src/gallium/drivers/vc4/ |
D | vc4_state.c | 94 const struct pipe_rasterizer_state *cso) in vc4_create_rasterizer_state() argument 102 so->base = *cso; in vc4_create_rasterizer_state() 104 if (!(cso->cull_face & PIPE_FACE_FRONT)) in vc4_create_rasterizer_state() 106 if (!(cso->cull_face & PIPE_FACE_BACK)) in vc4_create_rasterizer_state() 112 so->point_size = MAX2(cso->point_size, .125f); in vc4_create_rasterizer_state() 114 if (cso->front_ccw) in vc4_create_rasterizer_state() 117 if (cso->offset_tri) { in vc4_create_rasterizer_state() 120 so->offset_units = float_to_187_half(cso->offset_units); in vc4_create_rasterizer_state() 121 so->offset_factor = float_to_187_half(cso->offset_scale); in vc4_create_rasterizer_state() 124 if (cso->multisample) in vc4_create_rasterizer_state() [all …]
|
/external/mesa3d/src/gallium/drivers/nouveau/nvc0/ |
D | nvc0_state.c | 89 const struct pipe_blend_state *cso) in nvc0_blend_state_create() argument 99 so->pipe = *cso; in nvc0_blend_state_create() 102 if (cso->independent_blend_enable) { in nvc0_blend_state_create() 103 for (r = 0; r < 8 && !cso->rt[r].blend_enable; ++r); in nvc0_blend_state_create() 106 if (!cso->rt[i].blend_enable) in nvc0_blend_state_create() 109 if (cso->rt[i].rgb_func != cso->rt[r].rgb_func || in nvc0_blend_state_create() 110 cso->rt[i].rgb_src_factor != cso->rt[r].rgb_src_factor || in nvc0_blend_state_create() 111 cso->rt[i].rgb_dst_factor != cso->rt[r].rgb_dst_factor || in nvc0_blend_state_create() 112 cso->rt[i].alpha_func != cso->rt[r].alpha_func || in nvc0_blend_state_create() 113 cso->rt[i].alpha_src_factor != cso->rt[r].alpha_src_factor || in nvc0_blend_state_create() [all …]
|
/external/mesa3d/src/gallium/state_trackers/nine/ |
D | vertexshader9.c | 38 const DWORD *pFunction, void *cso ) in NineVertexShader9_ctor() argument 47 This, pParams, pFunction, cso); in NineVertexShader9_ctor() 53 if (cso) { in NineVertexShader9_ctor() 54 This->ff_cso = cso; in NineVertexShader9_ctor() 93 This->variant.cso = info.cso; in NineVertexShader9_ctor() 94 This->last_cso = info.cso; in NineVertexShader9_ctor() 121 if (var->cso) { in NineVertexShader9_dtor() 122 if (This->base.device->context.cso_shader.vs == var->cso) in NineVertexShader9_dtor() 124 pipe->delete_vs_state(pipe, var->cso); in NineVertexShader9_dtor() 130 if (var_so->cso) { in NineVertexShader9_dtor() [all …]
|
D | pixelshader9.c | 36 const DWORD *pFunction, void *cso ) in NinePixelShader9_ctor() argument 43 DBG("This=%p pParams=%p pFunction=%p cso=%p\n", This, pParams, pFunction, cso); in NinePixelShader9_ctor() 49 if (cso) { in NinePixelShader9_ctor() 50 This->ff_cso = cso; in NinePixelShader9_ctor() 77 This->variant.cso = info.cso; in NinePixelShader9_ctor() 78 This->last_cso = info.cso; in NinePixelShader9_ctor() 102 if (var->cso) { in NinePixelShader9_dtor() 103 if (This->base.device->context.cso_shader.ps == var->cso) in NinePixelShader9_dtor() 105 pipe->delete_fs_state(pipe, var->cso); in NinePixelShader9_dtor() 149 void *cso; in NinePixelShader9_GetVariant() local [all …]
|
/external/mesa3d/src/gallium/auxiliary/postprocess/ |
D | pp_run.c | 89 struct cso_context *cso = ppq->p->cso; in pp_run() local 118 cso_save_state(cso, (CSO_BIT_BLEND | in pp_run() 138 cso_save_constant_buffer_slot0(cso, PIPE_SHADER_VERTEX); in pp_run() 139 cso_save_constant_buffer_slot0(cso, PIPE_SHADER_FRAGMENT); in pp_run() 142 cso_set_sample_mask(cso, ~0); in pp_run() 143 cso_set_min_samples(cso, 1); in pp_run() 144 cso_set_stream_outputs(cso, 0, NULL, NULL); in pp_run() 145 cso_set_tessctrl_shader_handle(cso, NULL); in pp_run() 146 cso_set_tesseval_shader_handle(cso, NULL); in pp_run() 147 cso_set_geometry_shader_handle(cso, NULL); in pp_run() [all …]
|
/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_pipe_sampler.c | 226 struct svga_sampler_state *cso = CALLOC_STRUCT( svga_sampler_state ); in svga_create_sampler_state() local 228 if (!cso) in svga_create_sampler_state() 231 cso->mipfilter = translate_mip_filter(sampler->min_mip_filter); in svga_create_sampler_state() 232 cso->magfilter = translate_img_filter( sampler->mag_img_filter ); in svga_create_sampler_state() 233 cso->minfilter = translate_img_filter( sampler->min_img_filter ); in svga_create_sampler_state() 234 cso->aniso_level = MAX2( sampler->max_anisotropy, 1 ); in svga_create_sampler_state() 236 cso->magfilter = cso->minfilter = SVGA3D_TEX_FILTER_ANISOTROPIC; in svga_create_sampler_state() 237 cso->lod_bias = sampler->lod_bias; in svga_create_sampler_state() 238 cso->addressu = translate_wrap_mode(sampler->wrap_s); in svga_create_sampler_state() 239 cso->addressv = translate_wrap_mode(sampler->wrap_t); in svga_create_sampler_state() [all …]
|