/vbox/src/VBox/Devices/Graphics/shaderlib/ |
H A D | glsl_shader.c | 3179 DWORD sampler_idx; local 3184 if (shader_version < WINED3D_SHADER_VERSION(2,0)) sampler_idx = ins->dst[0].reg.idx; 3185 else sampler_idx = ins->src[1].reg.idx; 3186 sampler_type = ins->ctx->reg_maps->sampler_type[sampler_idx]; 3191 DWORD flags = (priv->cur_ps_args->tex_transform >> (sampler_idx * WINED3D_PSARGS_TEXTRANSFORM_SHIFT)) 3226 if(deviceImpl->stateBlock->textures[sampler_idx] && 3227 IWineD3DBaseTexture_GetTextureDimensions(deviceImpl->stateBlock->textures[sampler_idx]) == GL_TEXTURE_RECTANGLE_ARB) { 3243 shader_glsl_gen_sample_code(ins, sampler_idx, &sample_function, swizzle, NULL, NULL, NULL, 3244 "T%u%s", sampler_idx, coord_mask); 3252 shader_glsl_gen_sample_code(ins, sampler_idx, 3270 DWORD sampler_idx; local 3305 DWORD sampler_idx; local 3384 DWORD sampler_idx = ins->dst[0].reg.idx; local 3649 DWORD sampler_idx; local 3705 DWORD sampler_idx = ins->dst[0].reg.idx; local 3721 DWORD sampler_idx = ins->dst[0].reg.idx; local 3738 DWORD sampler_idx = ins->dst[0].reg.idx; local 3755 DWORD sampler_idx = ins->dst[0].reg.idx; local [all...] |
/vbox/src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d/ |
H A D | device.c | 2344 UINT sampler_idx, enum wined3d_sampler_state state, DWORD value) 2348 TRACE("device %p, sampler_idx %u, state %s, value %#x.\n", 2349 device, sampler_idx, debug_d3dsamplerstate(state), value); 2351 if (sampler_idx >= WINED3DVERTEXTEXTURESAMPLER0 && sampler_idx <= WINED3DVERTEXTEXTURESAMPLER3) 2352 sampler_idx -= (WINED3DVERTEXTEXTURESAMPLER0 - MAX_FRAGMENT_SAMPLERS); 2354 if (sampler_idx >= sizeof(device->stateBlock->state.sampler_states) 2357 WARN("Invalid sampler %u.\n", sampler_idx); 2361 old_value = device->stateBlock->state.sampler_states[sampler_idx][state]; 2362 device->updateStateBlock->state.sampler_states[sampler_idx][stat 2343 wined3d_device_set_sampler_state(struct wined3d_device *device, UINT sampler_idx, enum wined3d_sampler_state state, DWORD value) argument 2381 wined3d_device_get_sampler_state(const struct wined3d_device *device, UINT sampler_idx, enum wined3d_sampler_state state) argument [all...] |
H A D | arb_program_shader.c | 1385 static void shader_hw_sample(const struct wined3d_shader_instruction *ins, DWORD sampler_idx, argument 1389 DWORD sampler_type = ins->ctx->reg_maps->sampler_type[sampler_idx]; 1400 if(!pshader) sampler_idx += MAX_FRAGMENT_SAMPLERS; 1412 if (pshader && priv->cur_ps_args->super.np2_fixup & (1 << sampler_idx) 1419 if (priv->cur_np2fixup_info->super.active & (1 << sampler_idx)) 1447 if(sampler_idx >= MAX_FRAGMENT_SAMPLERS) 1449 sampler_idx = priv->cur_vs_args->vertex.samplers[sampler_idx - MAX_FRAGMENT_SAMPLERS]; 1457 dsx, dsy,sampler_idx, tex_type); 1464 sampler_idx, tex_typ 2342 DWORD sampler_idx = ins->dst[0].reg.idx[0].offset; local 3124 DWORD sampler_idx = ins->src[1].reg.idx[0].offset; local 3142 DWORD sampler_idx = ins->src[1].reg.idx[0].offset; local [all...] |
H A D | glsl_shader.c | 1929 DWORD sampler_idx, DWORD flags, struct glsl_sample_function *sample_function) 1931 enum wined3d_sampler_texture_type sampler_type = ctx->reg_maps->sampler_type[sampler_idx]; 1934 && (((const struct shader_glsl_ctx_priv *)ctx->backend_data)->cur_ps_args->shadow & (1 << sampler_idx)); 3525 DWORD sampler_idx; local 3532 sampler_idx = ins->dst[0].reg.idx[0].offset; 3534 sampler_idx = ins->src[1].reg.idx[0].offset; 3538 DWORD flags = (priv->cur_ps_args->tex_transform >> sampler_idx * WINED3D_PSARGS_TEXTRANSFORM_SHIFT) 3540 enum wined3d_sampler_texture_type sampler_type = ins->ctx->reg_maps->sampler_type[sampler_idx]; 3579 && ins->ctx->reg_maps->sampler_type[sampler_idx] != WINED3DSTT_CUBE) 3587 if (priv->cur_ps_args->np2_fixup & (1 << sampler_idx)) 1928 shader_glsl_get_sample_function(const struct wined3d_shader_context *ctx, DWORD sampler_idx, DWORD flags, struct glsl_sample_function *sample_function) argument 3628 DWORD sampler_idx; local 3658 DWORD sampler_idx; local 3743 DWORD sampler_idx = ins->dst[0].reg.idx[0].offset; local 3997 DWORD sampler_idx; local 4060 DWORD sampler_idx = ins->dst[0].reg.idx[0].offset; local 4075 DWORD sampler_idx = ins->dst[0].reg.idx[0].offset; local 4090 DWORD sampler_idx = ins->dst[0].reg.idx[0].offset; local 4105 DWORD sampler_idx = ins->dst[0].reg.idx[0].offset; local [all...] |
/vbox/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/ |
H A D | glsl_shader.c | 3056 DWORD sampler_idx; local 3061 if (shader_version < WINED3D_SHADER_VERSION(2,0)) sampler_idx = ins->dst[0].reg.idx; 3062 else sampler_idx = ins->src[1].reg.idx; 3063 sampler_type = ins->ctx->reg_maps->sampler_type[sampler_idx]; 3068 DWORD flags = (priv->cur_ps_args->tex_transform >> (sampler_idx * WINED3D_PSARGS_TEXTRANSFORM_SHIFT)) 3103 if(deviceImpl->stateBlock->textures[sampler_idx] && 3104 IWineD3DBaseTexture_GetTextureDimensions(deviceImpl->stateBlock->textures[sampler_idx]) == GL_TEXTURE_RECTANGLE_ARB) { 3120 shader_glsl_gen_sample_code(ins, sampler_idx, &sample_function, swizzle, NULL, NULL, NULL, 3121 "T%u%s", sampler_idx, coord_mask); 3129 shader_glsl_gen_sample_code(ins, sampler_idx, 3147 DWORD sampler_idx; local 3182 DWORD sampler_idx; local 3261 DWORD sampler_idx = ins->dst[0].reg.idx; local 3526 DWORD sampler_idx; local 3582 DWORD sampler_idx = ins->dst[0].reg.idx; local 3598 DWORD sampler_idx = ins->dst[0].reg.idx; local 3615 DWORD sampler_idx = ins->dst[0].reg.idx; local 3632 DWORD sampler_idx = ins->dst[0].reg.idx; local [all...] |
H A D | arb_program_shader.c | 1265 static void shader_hw_sample(const struct wined3d_shader_instruction *ins, DWORD sampler_idx, argument 1269 DWORD sampler_type = ins->ctx->reg_maps->sampler_type[sampler_idx]; 1279 if(!pshader) sampler_idx += MAX_FRAGMENT_SAMPLERS; 1287 if(device->stateBlock->textures[sampler_idx] && 1288 IWineD3DBaseTexture_GetTextureDimensions(device->stateBlock->textures[sampler_idx]) == GL_TEXTURE_RECTANGLE_ARB) { 1295 if (priv->cur_np2fixup_info->super.active & (1 << sampler_idx)) 1323 if(sampler_idx >= MAX_FRAGMENT_SAMPLERS) 1325 sampler_idx = priv->cur_vs_args->vertex.samplers[sampler_idx - MAX_FRAGMENT_SAMPLERS]; 1333 dsx, dsy,sampler_idx, tex_typ 2225 DWORD sampler_idx = ins->dst[0].reg.idx; local 2932 DWORD sampler_idx = ins->src[1].reg.idx; local 2950 DWORD sampler_idx = ins->src[1].reg.idx; local [all...] |