"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "dlls/wined3d/glsl_shader.c" between
wine-5.12.tar.xz and wine-5.13.tar.xz

About: Wine is an Open Source implementation of the MS Windows API on top of X, OpenGL, and Unix. Think of Wine as a compatibility layer for running Windows programs. Development release.

glsl_shader.c  (wine-5.12.tar.xz):glsl_shader.c  (wine-5.13.tar.xz)
skipping to change at line 6056 skipping to change at line 6056
ERR("Unhandled opcode %s.\n", debug_d3dshaderinstructionhandler(ins- >handler_idx)); ERR("Unhandled opcode %s.\n", debug_d3dshaderinstructionhandler(ins- >handler_idx));
break; break;
} }
sampler_bind_idx = shader_glsl_find_sampler(&ins->ctx->reg_maps->sampler_map , resource_idx, sampler_idx); sampler_bind_idx = shader_glsl_find_sampler(&ins->ctx->reg_maps->sampler_map , resource_idx, sampler_idx);
shader_glsl_gen_sample_code(ins, sampler_bind_idx, &sample_function, ins->sr c[1].swizzle, shader_glsl_gen_sample_code(ins, sampler_bind_idx, &sample_function, ins->sr c[1].swizzle,
dx_param_str, dy_param_str, lod_param_str, &ins->texel_offset, "%s", coord_param.param_str); dx_param_str, dy_param_str, lod_param_str, &ins->texel_offset, "%s", coord_param.param_str);
shader_glsl_release_sample_function(ins->ctx, &sample_function); shader_glsl_release_sample_function(ins->ctx, &sample_function);
} }
/* GLSL doesn't provide a function to sample from level zero with depth /* Unless EXT_texture_shadow_lod is available, GLSL doesn't provide a function
* comparison for array textures and cube textures. We use textureGrad*() * to sample from level zero with depth comparison for array textures and cube
* to implement sample_c_lz. * textures. We use textureGrad*() to implement sample_c_lz in that case. */
*/
static void shader_glsl_gen_sample_c_lz_emulation(const struct wined3d_shader_in struction *ins, static void shader_glsl_gen_sample_c_lz_emulation(const struct wined3d_shader_in struction *ins,
unsigned int sampler_bind_idx, const struct glsl_sample_function *sample _function, unsigned int sampler_bind_idx, const struct glsl_sample_function *sample _function,
unsigned int coord_size, const char *coord_param, const char *ref_param) unsigned int coord_size, const char *coord_param, const char *ref_param)
{ {
const struct wined3d_shader_version *version = &ins->ctx->reg_maps->shader_v ersion; const struct wined3d_shader_version *version = &ins->ctx->reg_maps->shader_v ersion;
unsigned int deriv_size = wined3d_popcount(sample_function->deriv_mask); unsigned int deriv_size = wined3d_popcount(sample_function->deriv_mask);
const struct wined3d_shader_texel_offset *offset = &ins->texel_offset; const struct wined3d_shader_texel_offset *offset = &ins->texel_offset;
struct wined3d_string_buffer *buffer = ins->ctx->buffer; struct wined3d_string_buffer *buffer = ins->ctx->buffer;
char dst_swizzle[6]; char dst_swizzle[6];
 End of changes. 1 change blocks. 
4 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)