Changeset 39569 in vbox
- Timestamp:
- Dec 9, 2011 1:56:36 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/glsl_shader.c
r39130 r39569 127 127 UINT constant_version; 128 128 const struct wined3d_context *context; 129 #ifdef VBOX_WITH_WDDM130 129 UINT inp2Fixup_info; 131 #else132 const struct ps_np2fixup_info *np2Fixup_info;133 #endif134 130 }; 135 131 136 #ifdef VBOX_WITH_WDDM137 132 #define WINEFIXUPINFO_NOINDEX (~0UL) 138 133 #define WINEFIXUPINFO_GET(_p) get_fixup_info((const IWineD3DPixelShaderImpl*)(_p)->pshader, (_p)->inp2Fixup_info) 139 134 #define WINEFIXUPINFO_ISVALID(_p) ((_p)->inp2Fixup_info != WINEFIXUPINFO_NOINDEX) 140 135 #define WINEFIXUPINFO_INIT(_p) ((_p)->inp2Fixup_info == WINEFIXUPINFO_NOINDEX) 141 #else142 #define WINEFIXUPINFO_GET(_p) ((_p)->np2Fixup_info)143 #define WINEFIXUPINFO_ISVALID(_p) (!!(_p)->np2Fixup_info)144 #define WINEFIXUPINFO_INIT(_p) ((_p)->np2Fixup_info == NULL)145 #endif146 136 147 137 typedef struct { … … 734 724 } 735 725 736 #ifdef VBOX_WITH_WDDM737 726 static const struct ps_np2fixup_info * get_fixup_info(const IWineD3DPixelShaderImpl *shader, UINT inp2fixup_info) 738 727 { … … 757 746 return &shader_data->gl_shaders[inp2fixup_info].np2fixup; 758 747 } 759 #endif760 748 761 749 /** … … 4285 4273 struct wined3d_shader_buffer *buffer, IWineD3DPixelShaderImpl *shader, 4286 4274 const struct ps_compile_args *args, 4287 #ifdef VBOX_WITH_WDDM4288 4275 UINT *inp2fixup_info 4289 #else4290 const struct ps_np2fixup_info **np2fixup_info4291 #endif4292 4276 ) 4293 4277 { … … 4318 4302 && memcmp(&shader_data->gl_shaders[i].args, args, sizeof(*args)) == 0) { 4319 4303 if(args->np2_fixup) { 4320 #ifdef VBOX_WITH_WDDM4321 4304 *inp2fixup_info = i; 4322 #else4323 *np2fixup_info = &shader_data->gl_shaders[i].np2fixup;4324 #endif4325 4305 } 4326 4306 return shader_data->gl_shaders[i].prgId; … … 4359 4339 shader_buffer_clear(buffer); 4360 4340 ret = shader_glsl_generate_pshader(context, buffer, shader, args, np2fixup); 4361 #ifdef VBOX_WITH_WDDM4362 4341 *inp2fixup_info = shader_data->num_gl_shaders; 4363 #else4364 *np2fixup_info = np2fixup;4365 #endif4366 4342 shader_data->gl_shaders[shader_data->num_gl_shaders++].prgId = ret; 4367 4343 … … 4541 4517 GLhandleARB pshader_id = find_glsl_pshader(context, &priv->shader_buffer, 4542 4518 (IWineD3DPixelShaderImpl *)pshader, &ps_compile_args, 4543 #ifdef VBOX_WITH_WDDM4544 4519 &entry->inp2Fixup_info 4545 #else4546 &entry->np2Fixup_info4547 #endif4548 4520 ); 4549 4521 TRACE("Attaching GLSL shader object %u to program %u\n", pshader_id, programId);
Note:
See TracChangeset
for help on using the changeset viewer.