Module: tools
Branch: master
Commit: 60c4f3646b1dc6b8cd96a247265d7516770a5973
URL: http://source.winehq.org/git/tools.git/?a=commit;h=60c4f3646b1dc6b8cd96a247…
Author: Alexandre Julliard <julliard(a)winehq.org>
Date: Mon Nov 24 17:15:19 2008 +0100
winetest: Point to the winetest.exe builds on winehq.
---
winetest/build-index | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/winetest/build-index b/winetest/build-index
index 9d55f28..165309c 100755
--- a/winetest/build-index
+++ b/winetest/build-index
@@ -270,7 +270,7 @@ foreach my $build (@builds)
print OUT <<"EOF";
</table></div>
<div class="navbar">
-To run the tests on your Windows machine, download the <a href="http://www.astro.gla.ac.uk/users/paulm/WRT/CrossBuilt/winetest-latest.exe">latest winetest.exe</a> build.
+To run the tests on your Windows machine, download the <a href="/builds/winetest-latest.exe">latest winetest.exe</a> build.
</div>
</body></html>
EOF
Module: wine
Branch: master
Commit: f0a816e8cb87b176ccf1a3f266fe22c6d36edb7b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f0a816e8cb87b176ccf1a3f26…
Author: Henri Verbeet <hverbeet(a)codeweavers.com>
Date: Tue Nov 25 11:57:39 2008 +0100
wined3d: Slightly reduce the scope of fragment_palette_conversion.
---
dlls/wined3d/surface.c | 22 +++++++++++++---------
1 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 1827838..f948b6a 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -2178,15 +2178,6 @@ static void d3dfmt_p8_init_palette(IWineD3DSurfaceImpl *This, BYTE table[256][4]
}
}
-const char *fragment_palette_conversion =
- "!!ARBfp1.0\n"
- "TEMP index;\n"
- "PARAM constants = { 0.996, 0.00195, 0, 0 };\n" /* { 255/256, 0.5/255*255/256, 0, 0 } */
- "TEX index, fragment.texcoord[0], texture[0], 2D;\n" /* The alpha-component contains the palette index */
- "MAD index.a, index.a, constants.x, constants.y;\n" /* Scale the index by 255/256 and add a bias of '0.5' in order to sample in the middle */
- "TEX result.color, index.a, texture[1], 1D;\n" /* use the alpha-component as a index in the palette to get the final color */
- "END";
-
/* This function is used in case of 8bit paletted textures to upload the palette.
It supports GL_EXT_paletted_texture and GL_ARB_fragment_program, support for other
extensions like ATI_fragment_shaders is possible.
@@ -2213,6 +2204,19 @@ static void d3dfmt_p8_upload_palette(IWineD3DSurface *iface, CONVERT_TYPES conve
/* Create the fragment program if we don't have it */
if(!device->paletteConversionShader)
{
+ const char *fragment_palette_conversion =
+ "!!ARBfp1.0\n"
+ "TEMP index;\n"
+ /* { 255/256, 0.5/255*255/256, 0, 0 } */
+ "PARAM constants = { 0.996, 0.00195, 0, 0 };\n"
+ /* The alpha-component contains the palette index */
+ "TEX index, fragment.texcoord[0], texture[0], 2D;\n"
+ /* Scale the index by 255/256 and add a bias of '0.5' in order to sample in the middle */
+ "MAD index.a, index.a, constants.x, constants.y;\n"
+ /* Use the alpha-component as an index in the palette to get the final color */
+ "TEX result.color, index.a, texture[1], 1D;\n"
+ "END";
+
glEnable(GL_FRAGMENT_PROGRAM_ARB);
GL_EXTCALL(glGenProgramsARB(1, &device->paletteConversionShader));
GL_EXTCALL(glBindProgramARB(GL_FRAGMENT_PROGRAM_ARB, device->paletteConversionShader));
Module: wine
Branch: master
Commit: 49b55f677efbdb95381e9708eca685b6e8951c82
URL: http://source.winehq.org/git/wine.git/?a=commit;h=49b55f677efbdb95381e9708e…
Author: Henri Verbeet <hverbeet(a)codeweavers.com>
Date: Tue Nov 25 11:57:39 2008 +0100
wined3d: Don't call IWineD3DSurfaceImpl_GetData() from surface_gdi.c.
---
dlls/wined3d/surface.c | 12 +-----------
dlls/wined3d/surface_base.c | 14 ++++++++++++++
dlls/wined3d/surface_gdi.c | 2 +-
dlls/wined3d/wined3d_private.h | 3 +--
4 files changed, 17 insertions(+), 14 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index beb9f6d..1827838 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -680,16 +680,6 @@ void WINAPI IWineD3DSurfaceImpl_GetGlDesc(IWineD3DSurface *iface, glDescriptor *
*glDescription = &This->glDescription;
}
-/* TODO: think about moving this down to resource? */
-const void *WINAPI IWineD3DSurfaceImpl_GetData(IWineD3DSurface *iface) {
- IWineD3DSurfaceImpl *This = (IWineD3DSurfaceImpl *)iface;
- /* This should only be called for sysmem textures, it may be a good idea to extend this to all pools at some point in the future */
- if (This->resource.pool != WINED3DPOOL_SYSTEMMEM) {
- FIXME(" (%p)Attempting to get system memory for a non-system memory texture\n", iface);
- }
- return (CONST void*)(This->resource.allocatedMemory);
-}
-
/* Read the framebuffer back into the surface */
static void read_from_framebuffer(IWineD3DSurfaceImpl *This, CONST RECT *rect, void *dest, UINT pitch) {
IWineD3DSwapChainImpl *swapchain;
@@ -4801,7 +4791,7 @@ const IWineD3DSurfaceVtbl IWineD3DSurface_Vtbl =
IWineD3DSurfaceImpl_SaveSnapshot,
IWineD3DSurfaceImpl_SetContainer,
IWineD3DSurfaceImpl_GetGlDesc,
- IWineD3DSurfaceImpl_GetData,
+ IWineD3DBaseSurfaceImpl_GetData,
IWineD3DSurfaceImpl_SetFormat,
IWineD3DSurfaceImpl_PrivateSetup,
IWineD3DSurfaceImpl_ModifyLocation,
diff --git a/dlls/wined3d/surface_base.c b/dlls/wined3d/surface_base.c
index 5ae80f9..64f05e2 100644
--- a/dlls/wined3d/surface_base.c
+++ b/dlls/wined3d/surface_base.c
@@ -1818,3 +1818,17 @@ void WINAPI IWineD3DBaseSurfaceImpl_BindTexture(IWineD3DSurface *iface) {
ERR("Should not be called on base texture\n");
return;
}
+
+/* TODO: think about moving this down to resource? */
+const void *WINAPI IWineD3DBaseSurfaceImpl_GetData(IWineD3DSurface *iface)
+{
+ IWineD3DSurfaceImpl *This = (IWineD3DSurfaceImpl *)iface;
+
+ /* This should only be called for sysmem textures, it may be a good idea
+ * to extend this to all pools at some point in the future */
+ if (This->resource.pool != WINED3DPOOL_SYSTEMMEM)
+ {
+ FIXME("(%p) Attempting to get system memory for a non-system memory texture\n", iface);
+ }
+ return This->resource.allocatedMemory;
+}
diff --git a/dlls/wined3d/surface_gdi.c b/dlls/wined3d/surface_gdi.c
index a17c007..6266366 100644
--- a/dlls/wined3d/surface_gdi.c
+++ b/dlls/wined3d/surface_gdi.c
@@ -679,7 +679,7 @@ const IWineD3DSurfaceVtbl IWineGDISurface_Vtbl =
IWineGDISurfaceImpl_SaveSnapshot,
IWineD3DBaseSurfaceImpl_SetContainer,
IWineGDISurfaceImpl_GetGlDesc,
- IWineD3DSurfaceImpl_GetData,
+ IWineD3DBaseSurfaceImpl_GetData,
IWineD3DBaseSurfaceImpl_SetFormat,
IWineGDISurfaceImpl_PrivateSetup,
IWineGDISurfaceImpl_ModifyLocation,
diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
index e3701e8..64daf8a 100644
--- a/dlls/wined3d/wined3d_private.h
+++ b/dlls/wined3d/wined3d_private.h
@@ -1490,8 +1490,7 @@ HRESULT WINAPI IWineD3DBaseSurfaceImpl_BltFast(IWineD3DSurface *iface, DWORD dst
IWineD3DSurface *Source, const RECT *rsrc, DWORD trans);
HRESULT WINAPI IWineD3DBaseSurfaceImpl_LockRect(IWineD3DSurface *iface, WINED3DLOCKED_RECT* pLockedRect, CONST RECT* pRect, DWORD Flags);
void WINAPI IWineD3DBaseSurfaceImpl_BindTexture(IWineD3DSurface *iface);
-
-const void *WINAPI IWineD3DSurfaceImpl_GetData(IWineD3DSurface *iface);
+const void *WINAPI IWineD3DBaseSurfaceImpl_GetData(IWineD3DSurface *iface);
void get_drawable_size_swapchain(IWineD3DSurfaceImpl *This, UINT *width, UINT *height);
void get_drawable_size_backbuffer(IWineD3DSurfaceImpl *This, UINT *width, UINT *height);