Searched refs:reg_maps (Results 1 - 16 of 16) sorted by relevance

/vbox/src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d/
H A Dshader.c393 static void shader_record_register_usage(struct wined3d_shader *shader, struct wined3d_shader_reg_maps *reg_maps, argument
400 reg_maps->texcoord |= 1 << reg->idx[0].offset;
402 reg_maps->address |= 1 << reg->idx[0].offset;
406 reg_maps->temporary |= 1 << reg->idx[0].offset;
429 reg_maps->input_registers |= 1 << reg->idx[0].offset;
434 reg_maps->fog = 1;
441 reg_maps->vpos = 1;
443 reg_maps->usesfacing = 1;
450 if (reg->idx[0].offset < reg_maps->min_rel_offset)
451 reg_maps
502 shader_get_registers_used(struct wined3d_shader *shader, const struct wined3d_shader_frontend *fe, struct wined3d_shader_reg_maps *reg_maps, struct wined3d_shader_signature_element *input_signature, struct wined3d_shader_signature_element *output_signature, const DWORD *byte_code, DWORD constf_size) argument
871 shader_find_free_input_register(const struct wined3d_shader_reg_maps *reg_maps, unsigned int max) argument
1246 shader_generate_main(const struct wined3d_shader *shader, struct wined3d_shader_buffer *buffer, const struct wined3d_shader_reg_maps *reg_maps, const DWORD *byte_code, void *backend_ctx) argument
1654 struct wined3d_shader_reg_maps *reg_maps = &shader->reg_maps; local
1946 struct wined3d_shader_reg_maps *reg_maps = &shader->reg_maps; local
2359 struct wined3d_shader_reg_maps *reg_maps = &shader->reg_maps; local
[all...]
H A Darb_program_shader.c348 const struct wined3d_shader_reg_maps *reg_maps, const struct wined3d_gl_info *gl_info)
351 if (!reg_maps->usesmova) return FALSE;
363 const struct wined3d_shader_reg_maps *reg_maps, const struct wined3d_gl_info *gl_info)
365 if (need_rel_addr_const(shader_data, reg_maps, gl_info)) return TRUE;
370 if (reg_maps->usesnrm) return TRUE; /* 0.0 */
371 if (reg_maps->usespow) return TRUE; /* EPS, 0.0 and 1.0 */
372 if (reg_maps->fog) return TRUE; /* Clamping fog coord, 0.0 and 1.0 */
377 const struct wined3d_shader_reg_maps *reg_maps, const struct wined3d_gl_info *gl_info)
382 if (need_helper_const(shader_data, reg_maps, gl_info)) ++ret;
383 if (need_rel_addr_const(shader_data, reg_maps, gl_inf
347 need_rel_addr_const(const struct arb_vshader_private *shader_data, const struct wined3d_shader_reg_maps *reg_maps, const struct wined3d_gl_info *gl_info) argument
362 need_helper_const(const struct arb_vshader_private *shader_data, const struct wined3d_shader_reg_maps *reg_maps, const struct wined3d_gl_info *gl_info) argument
376 reserved_vs_const(const struct arb_vshader_private *shader_data, const struct wined3d_shader_reg_maps *reg_maps, const struct wined3d_gl_info *gl_info) argument
775 shader_generate_arb_declarations(const struct wined3d_shader *shader, const struct wined3d_shader_reg_maps *reg_maps, struct wined3d_shader_buffer *buffer, const struct wined3d_gl_info *gl_info, DWORD *num_clipplanes, const struct shader_arb_ctx_priv *ctx) argument
1012 const struct wined3d_shader_reg_maps *reg_maps = ins->ctx->reg_maps; local
1794 const struct wined3d_shader_reg_maps *reg_maps = ins->ctx->reg_maps; local
3170 vshader_add_footer(struct shader_arb_ctx_priv *priv_ctx, const struct arb_vshader_private *shader_data, const struct arb_vs_compile_args *args, const struct wined3d_shader_reg_maps *reg_maps, const struct wined3d_gl_info *gl_info, struct wined3d_shader_buffer *buffer) argument
3590 const struct wined3d_shader_reg_maps *reg_maps = &shader->reg_maps; local
4179 const struct wined3d_shader_reg_maps *reg_maps = &shader->reg_maps; local
4445 const struct wined3d_shader_reg_maps *reg_maps = &shader->reg_maps; local
5294 const struct wined3d_shader_reg_maps *reg_maps = ins->ctx->reg_maps; local
5325 const struct wined3d_shader_reg_maps *reg_maps = ins->ctx->reg_maps; local
[all...]
H A Dglsl_shader.c622 if (shader->reg_maps.shader_version.major == 1
623 && shader->reg_maps.shader_version.type == WINED3D_SHADER_TYPE_PIXEL)
689 prefix = shader_glsl_get_prefix(shader->reg_maps.shader_version.type);
808 vshader->reg_maps.integer_constants);
812 vshader->reg_maps.boolean_constants);
830 pshader->reg_maps.integer_constants);
834 pshader->reg_maps.boolean_constants);
995 const struct wined3d_shader_reg_maps *reg_maps, const struct shader_glsl_ctx_priv *ctx_priv)
997 const struct wined3d_shader_version *version = &reg_maps->shader_version;
1010 for (i = 0, map = reg_maps
993 shader_generate_glsl_declarations(const struct wined3d_context *context, struct wined3d_shader_buffer *buffer, const struct wined3d_shader *shader, const struct wined3d_shader_reg_maps *reg_maps, const struct shader_glsl_ctx_priv *ctx_priv) argument
1442 const struct wined3d_shader_reg_maps *reg_maps = ins->ctx->reg_maps; local
4164 shader_glsl_input_pack(const struct wined3d_shader *shader, struct wined3d_shader_buffer *buffer, const struct wined3d_shader_signature_element *input_signature, const struct wined3d_shader_reg_maps *reg_maps, enum vertexprocessing_mode vertexprocessing) argument
4533 const struct wined3d_shader_reg_maps *reg_maps = &shader->reg_maps; local
4596 const struct wined3d_shader_reg_maps *reg_maps = &shader->reg_maps; local
4667 const struct wined3d_shader_reg_maps *reg_maps = &shader->reg_maps; local
[all...]
H A Dwined3d_private.h650 const struct wined3d_shader_reg_maps *reg_maps; member in struct:wined3d_shader_context
2923 struct wined3d_shader_reg_maps reg_maps; member in struct:wined3d_shader
2962 unsigned int shader_find_free_input_register(const struct wined3d_shader_reg_maps *reg_maps,
2965 const struct wined3d_shader_reg_maps *reg_maps, const DWORD *byte_code, void *backend_ctx) DECLSPEC_HIDDEN;
H A Ddevice.c382 if (state->vertex_shader->reg_maps.sampler_type[i])
391 if (state->pixel_shader->reg_maps.sampler_type[i])
2833 device->stateBlock->state.pixel_shader->reg_maps.sampler_type;
2876 device->stateBlock->state.vertex_shader->reg_maps.sampler_type;
2885 pshader_sampler_type = device->stateBlock->state.pixel_shader->reg_maps.sampler_type;
H A Dcontext.c2688 rt_mask = ps ? ps->reg_maps.rt_mask : 1;
H A Dstate.c3614 if (ps && stage && (ps->reg_maps.luminanceparams & (1 << stage)))
3778 if (ps && stage && (ps->reg_maps.bumpmat & (1 << stage)))
4144 if (state->vertex_shader->reg_maps.input_registers & (1 << i))
/vbox/src/VBox/Devices/Graphics/shaderlib/
H A Dshader.c337 static void shader_record_register_usage(IWineD3DBaseShaderImpl *shader, struct shader_reg_maps *reg_maps, argument
343 if (shader_type == WINED3D_SHADER_TYPE_PIXEL) reg_maps->texcoord |= 1 << reg->idx;
344 else reg_maps->address |= 1 << reg->idx;
348 reg_maps->temporary |= 1 << reg->idx;
370 else reg_maps->input_registers |= 1 << reg->idx;
374 if (reg->idx == 1) reg_maps->fog = 1;
380 if (reg->idx == 0) reg_maps->vpos = 1;
381 else if (reg->idx == 1) reg_maps->usesfacing = 1;
399 reg_maps->usesrelconstF = TRUE;
403 set_bitmap_bit(reg_maps
446 shader_get_registers_used(IWineD3DBaseShader *iface, const struct wined3d_shader_frontend *fe, struct shader_reg_maps *reg_maps, struct wined3d_shader_signature_element *input_signature, struct wined3d_shader_signature_element *output_signature, const DWORD *byte_code, DWORD constf_size) argument
772 shader_find_free_input_register(const struct shader_reg_maps *reg_maps, unsigned int max) argument
1095 shader_generate_main(IWineD3DBaseShader *iface, struct wined3d_shader_buffer *buffer, const shader_reg_maps *reg_maps, const DWORD *byte_code, void *backend_ctx) argument
1504 struct shader_reg_maps *reg_maps = &shader->baseShader.reg_maps; local
1781 struct shader_reg_maps *reg_maps = &shader->baseShader.reg_maps; local
2287 pixelshader_update_samplers(struct shader_reg_maps *reg_maps, IWineD3DBaseTexture * const *textures) argument
[all...]
H A Dglsl_shader.c634 if (This->baseShader.reg_maps.shader_version.major == 1
635 && shader_is_pshader_version(This->baseShader.reg_maps.shader_version.type))
704 switch (This->baseShader.reg_maps.shader_version.type)
720 This->baseShader.reg_maps.shader_version.type);
878 stateBlock->changed.vertexShaderConstantsI & vshader->baseShader.reg_maps.integer_constants);
882 stateBlock->changed.vertexShaderConstantsB & vshader->baseShader.reg_maps.boolean_constants);
899 stateBlock->changed.pixelShaderConstantsI & pshader->baseShader.reg_maps.integer_constants);
903 stateBlock->changed.pixelShaderConstantsB & pshader->baseShader.reg_maps.boolean_constants);
1032 const shader_reg_maps *reg_maps, struct shader_glsl_ctx_priv *ctx_priv)
1043 char pshader = shader_is_pshader_version(reg_maps
1030 shader_generate_glsl_declarations(const struct wined3d_context *context, struct wined3d_shader_buffer *buffer, IWineD3DBaseShader *iface, const shader_reg_maps *reg_maps, struct shader_glsl_ctx_priv *ctx_priv) argument
3814 shader_glsl_input_pack(IWineD3DPixelShader *iface, struct wined3d_shader_buffer *buffer, const struct wined3d_shader_signature_element *input_signature, const struct shader_reg_maps *reg_maps, enum vertexprocessing_mode vertexprocessing) argument
4291 const struct shader_reg_maps *reg_maps = &This->baseShader.reg_maps; local
4401 const struct shader_reg_maps *reg_maps = &This->baseShader.reg_maps; local
[all...]
H A Dwined3d_private.h604 const struct shader_reg_maps *reg_maps; member in struct:wined3d_shader_context
3140 shader_reg_maps reg_maps; member in struct:IWineD3DBaseShaderClass
3171 unsigned int shader_find_free_input_register(const struct shader_reg_maps *reg_maps, unsigned int max) DECLSPEC_HIDDEN;
3173 const shader_reg_maps *reg_maps, const DWORD *pFunction, void *backend_ctx) DECLSPEC_HIDDEN;
3321 void pixelshader_update_samplers(struct shader_reg_maps *reg_maps,
/vbox/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/
H A Dshader.c337 static void shader_record_register_usage(IWineD3DBaseShaderImpl *shader, struct shader_reg_maps *reg_maps, argument
343 if (shader_type == WINED3D_SHADER_TYPE_PIXEL) reg_maps->texcoord |= 1 << reg->idx;
344 else reg_maps->address |= 1 << reg->idx;
348 reg_maps->temporary |= 1 << reg->idx;
370 else reg_maps->input_registers |= 1 << reg->idx;
374 if (reg->idx == 1) reg_maps->fog = 1;
380 if (reg->idx == 0) reg_maps->vpos = 1;
381 else if (reg->idx == 1) reg_maps->usesfacing = 1;
399 reg_maps->usesrelconstF = TRUE;
403 set_bitmap_bit(reg_maps
446 shader_get_registers_used(IWineD3DBaseShader *iface, const struct wined3d_shader_frontend *fe, struct shader_reg_maps *reg_maps, struct wined3d_shader_signature_element *input_signature, struct wined3d_shader_signature_element *output_signature, const DWORD *byte_code, DWORD constf_size) argument
772 shader_find_free_input_register(const struct shader_reg_maps *reg_maps, unsigned int max) argument
1095 shader_generate_main(IWineD3DBaseShader *iface, struct wined3d_shader_buffer *buffer, const shader_reg_maps *reg_maps, const DWORD *byte_code, void *backend_ctx) argument
1502 struct shader_reg_maps *reg_maps = &shader->baseShader.reg_maps; local
1777 struct shader_reg_maps *reg_maps = &shader->baseShader.reg_maps; local
2281 pixelshader_update_samplers(struct shader_reg_maps *reg_maps, IWineD3DBaseTexture * const *textures) argument
[all...]
H A Dglsl_shader.c617 if (This->baseShader.reg_maps.shader_version.major == 1
618 && shader_is_pshader_version(This->baseShader.reg_maps.shader_version.type))
687 switch (This->baseShader.reg_maps.shader_version.type)
703 This->baseShader.reg_maps.shader_version.type);
861 stateBlock->changed.vertexShaderConstantsI & vshader->baseShader.reg_maps.integer_constants);
865 stateBlock->changed.vertexShaderConstantsB & vshader->baseShader.reg_maps.boolean_constants);
882 stateBlock->changed.pixelShaderConstantsI & pshader->baseShader.reg_maps.integer_constants);
886 stateBlock->changed.pixelShaderConstantsB & pshader->baseShader.reg_maps.boolean_constants);
1011 const shader_reg_maps *reg_maps, struct shader_glsl_ctx_priv *ctx_priv)
1022 char pshader = shader_is_pshader_version(reg_maps
1009 shader_generate_glsl_declarations(const struct wined3d_context *context, struct wined3d_shader_buffer *buffer, IWineD3DBaseShader *iface, const shader_reg_maps *reg_maps, struct shader_glsl_ctx_priv *ctx_priv) argument
3691 shader_glsl_input_pack(IWineD3DPixelShader *iface, struct wined3d_shader_buffer *buffer, const struct wined3d_shader_signature_element *input_signature, const struct shader_reg_maps *reg_maps, enum vertexprocessing_mode vertexprocessing) argument
4164 const struct shader_reg_maps *reg_maps = &This->baseShader.reg_maps; local
4270 const struct shader_reg_maps *reg_maps = &This->baseShader.reg_maps; local
[all...]
H A Darb_program_shader.c96 if(!This->baseShader.reg_maps.usesmova) return FALSE;
342 if (target_type == GL_FRAGMENT_PROGRAM_ARB && This->baseShader.reg_maps.shader_version.major == 1)
661 static DWORD shader_generate_arb_declarations(IWineD3DBaseShader *iface, const shader_reg_maps *reg_maps, argument
667 char pshader = shader_is_pshader_version(reg_maps->shader_version.type);
688 if(This->baseShader.reg_maps.usesrelconstF) {
691 max_constantsF -= count_bits(This->baseShader.reg_maps.integer_constants);
697 if(reg_maps->constf[idx] & (1 << shift)) highest_constf = i;
727 for (i = 0, map = reg_maps->temporary; map; map >>= 1, ++i)
732 for (i = 0, map = reg_maps->address; map; map >>= 1, ++i)
737 if (pshader && reg_maps
2981 const shader_reg_maps *reg_maps = &This->baseShader.reg_maps; local
3327 const shader_reg_maps* reg_maps = &This->baseShader.reg_maps; local
3915 const shader_reg_maps *reg_maps = &This->baseShader.reg_maps; local
[all...]
H A Dwined3d_private.h593 const struct shader_reg_maps *reg_maps; member in struct:wined3d_shader_context
3105 shader_reg_maps reg_maps; member in struct:IWineD3DBaseShaderClass
3136 unsigned int shader_find_free_input_register(const struct shader_reg_maps *reg_maps, unsigned int max) DECLSPEC_HIDDEN;
3138 const shader_reg_maps *reg_maps, const DWORD *pFunction, void *backend_ctx) DECLSPEC_HIDDEN;
3280 void pixelshader_update_samplers(struct shader_reg_maps *reg_maps,
H A Ddevice.c495 if (((IWineD3DBaseShaderImpl *)stateblock->vertexShader)->baseShader.reg_maps.sampler_type[i])
504 if (((IWineD3DBaseShaderImpl *)stateblock->pixelShader)->baseShader.reg_maps.sampler_type[i])
3354 ((IWineD3DPixelShaderImpl *)This->stateBlock->pixelShader)->baseShader.reg_maps.sampler_type;
3397 ((IWineD3DVertexShaderImpl *)This->stateBlock->vertexShader)->baseShader.reg_maps.sampler_type;
3407 pshader_sampler_type = pshader->baseShader.reg_maps.sampler_type;
H A Dstate.c3487 && (((IWineD3DPixelShaderImpl *)stateblock->pixelShader)->baseShader.reg_maps.luminanceparams & (1 << stage)))
3653 && (((IWineD3DPixelShaderImpl *)stateblock->pixelShader)->baseShader.reg_maps.bumpmat & (1 << stage)))

Completed in 264 milliseconds