URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=94d91c67077a5efd13b9505fe01a3c80ccb37bc9 Author: Axel Davy <axel.d...@ens.fr> Date: Thu Jan 28 22:32:43 2016 +0100
st/nine: Use align_free when needed Use align_free to free memory allocated with align_malloc. Signed-off-by: Axel Davy <axel.d...@ens.fr> Reviewed-by: Patrick Rudolph <s...@das-labor.org> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6b12fe77ea7bbd8f159c0902a7c1d4ab22d4629c Author: Axel Davy <axel.d...@ens.fr> Date: Tue Jan 26 16:40:30 2016 +0100 st/nine: Disallow non-argb8888 cursors Only argb8888 cursors are allowed. Signed-off-by: Axel Davy <axel.d...@ens.fr> Reviewed-by: Patrick Rudolph <s...@das-labor.org> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=24ddadbba9ddfde579cc4cc65f58b063122b8d02 Author: Axel Davy <axel.d...@ens.fr> Date: Sat Jan 9 14:16:15 2016 +0100 st/nine: Enforce centroid for color input when multisampling is on The color inputs must automatically use centroid whether multisampling is used or not. Signed-off-by: Axel Davy <axel.d...@ens.fr> Reviewed-by: Patrick Rudolph <s...@das-labor.org> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d5389bb92d5dfa1676cf28a80392f0fcb0eb8dc8 Author: Axel Davy <axel.d...@ens.fr> Date: Thu Jan 28 22:44:42 2016 +0100 st/nine: Fix centroid flag sem.reg.mod & NINED3DSPDM_CENTROID is worth 4 when centroid is requested, whereas TGSI_INTERPOLATE_LOC_CENTROID is worth 1. Signed-off-by: Axel Davy <axel.d...@ens.fr> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ee31f0fed4bd97e3c9a0c4547ad908d55607f532 Author: Axel Davy <axel.d...@ens.fr> Date: Mon Jan 4 16:15:18 2016 +0100 st/nine: Use fast clears more often for MRTs This enables to use fast clears in the following case: pixel shader renders to 1 RT 4 RT bound clear new pixel shader bound that renders to 4 RTs Previously the fast clear path wouldn't be hit, because when trying the fast clear path, the framebuffer state would be configured for 1 RT, instead of 4. Signed-off-by: Axel Davy <axel.d...@ens.fr> Reviewed-by: Patrick Rudolph <s...@das-labor.org> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e85ef7d8e501b3f0a94d8e53fbd3372ba24b89ec Author: Axel Davy <axel.d...@ens.fr> Date: Mon Jan 4 16:13:07 2016 +0100 st/nine: Use linear filtering for shadow mapping Some docs say linear filtering is always used when app does shadow mapping. Signed-off-by: Axel Davy <axel.d...@ens.fr> Reviewed-by: Patrick Rudolph <s...@das-labor.org> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0b35da59deff0d6671649a6aedc10b3c81aeb8a7 Author: Patrick Rudolph <s...@das-labor.org> Date: Thu Oct 22 15:46:16 2015 +0200 st/nine: Respect block alignment on surface lock Respect block alignment for ATI1/ATI2 format when trying to lock a surface using LockRect(). Fixes failing WINE tests device.c test_surface_blocks() tests. Signed-off-by: Patrick Rudolph <s...@das-labor.org> Reviewed-by: Axel Davy <axel.d...@ens.fr> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=56b4222b299ff08da4eda63fcc608dc77fc585f1 Author: Axel Davy <axel.d...@ens.fr> Date: Sat May 16 14:28:41 2015 +0200 st/nine: Add Render state validation layer Testing Win behaviour seems to show wrong states are accepted, but then depending on the states some specific 'good' behaviours happen. This adds some validation to catch invalid states and have these 'good' behaviours when it happens. Also reorders SetRenderState to match the expected optimisation: (Value == previous Value) => return immediately, which affects D3D9 hacks too. Signed-off-by: Axel Davy <axel.d...@ens.fr> Signed-off-by: Patrick Rudolph <s...@das-labor.org> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7132617436dda072f874f6f206847e62038ce39e Author: Patrick Rudolph <s...@das-labor.org> Date: Mon May 25 13:06:58 2015 +0200 DRI_CONFIG: Add option to override vendor id Add config option override_vendorid to report a fake card in d3dadapter9 drm. Signed-off-by: Patrick Rudolph <s...@das-labor.org> Reviewed-by: Axel Davy <axel.d...@ens.fr> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1a893ac8869a0be08582f3b224d1a92ff37fc400 Author: Patrick Rudolph <s...@das-labor.org> Date: Wed Sep 30 16:42:10 2015 +0200 st/nine: Implement NineDevice9_GetAvailableTextureMem Implement a device private memory counter similar to Win 7. Only textures and surfaces increment vidmem and may return ERR_OUTOFVIDEOMEMORY. Vertexbuffers and indexbuffers creation always succeedes, even when out of video memory. Fixes "Vampire: The Masquerade - Bloodlines" allocating resources until crash. Fixes "Age of Conan" allocating resources until crash. Fixes failing WINE test device.c test_vidmem_accounting(). Signed-off-by: Patrick Rudolph <s...@das-labor.org> Reviewed-by: Axel Davy <axel.d...@ens.fr> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a961ec335d5f38c07181e4956341c9b4cca59fa4 Author: Patrick Rudolph <s...@das-labor.org> Date: Sat Jun 20 20:06:11 2015 +0200 st/nine: Handle Window Occlusion Apps can know if the window is occluded by checking for specific error messages. The behaviour is different for Device9 and Device9Ex. This allow games to release the mouse and stop rendering until the focus is restored. In case of multiple swapchain we do care only of the device one. Signed-off-by: Patrick Rudolph <s...@das-labor.org> Reviewed-by: Axel Davy <axel.d...@ens.fr> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e59908e57f4f6d63bbe079fde4e0180167e709c1 Author: Patrick Rudolph <s...@das-labor.org> Date: Sun Aug 23 08:42:34 2015 +0200 st/nine: Store minor version num To keep compatible with older ID3DPresent interfaces (used to talk with Wine), store the minor version num accessible to all statetracker functions (in the NineDevice9 structure). Signed-off-by: Patrick Rudolph <s...@das-labor.org> Reviewed-by: Axel Davy <axel.d...@ens.fr> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0ac01a9fd7794fd0eb5893ebcb13fb4cfa57d754 Author: Axel Davy <axel.d...@ens.fr> Date: Fri Oct 9 00:08:43 2015 +0200 st/nine: Call flush_resource before flush flush_resource needs to be called before flush (for fast clear resolve, etc). Removes useless computation of resource (it is already set correctly). Signed-off-by: Axel Davy <axel.d...@ens.fr> Reviewed-by: Patrick Rudolph <s...@das-labor.org> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f481b9b952552da48af83e9fd041d73ba47b73f7 Author: Patrick Rudolph <s...@das-labor.org> Date: Thu Oct 22 17:00:35 2015 +0200 st/nine: Fix remaining swapchain tests Return D3DERR_INVALIDCALL instead of E_POINTER. On error set ppBackBuffer to NULL. Multiple swapchains can only be created in windowed mode as windowed swapchain. Set backbuffer to NULL in NineDevice9_GetBackBuffer, but not in NineSwapChain9_GetBackBuffer. This fixes all WINE's device.c test_swapchain() tests. Signed-off-by: Patrick Rudolph <s...@das-labor.org> Reviewed-by: Axel Davy <axel.d...@ens.fr> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cbbd3c65cc6f9a9850b945bc3d56c1860836e26c Author: Axel Davy <axel.d...@ens.fr> Date: Wed Nov 11 10:13:58 2015 +0100 st/nine: Fix crash NineDevice9_CreateAdditionalSwapChain When no window is specified, we should revert to the focus window. This deserves more tests however (what if the device swapchain is already using the focus window ?) Fixes crash for FFXIV Signed-off-by: Axel Davy <axel.d...@ens.fr> Reviewed-by: Patrick Rudolph <s...@das-labor.org> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=996f76bd8a6444970e57d646ad5af94f200bec00 Author: Patrick Rudolph <s...@das-labor.org> Date: Thu Oct 22 17:02:16 2015 +0200 st/nine: Fix possible crash on error In case swapchain creation fails This->swapchains[i] might be NULL and causes a crash. Signed-off-by: Patrick Rudolph <s...@das-labor.org> Reviewed-by: Axel Davy <axel.d...@ens.fr> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=40a0b97ebdcfeebc79d9cbf03fb78f84c3f599ba Author: Patrick Rudolph <s...@das-labor.org> Date: Thu Oct 22 16:02:14 2015 +0200 st/nine: Test more presentation params Return errors in case of invalid presentation parameters. Fixes failing WINE tests device.c test_swapchain_parameters(). Signed-off-by: Patrick Rudolph <s...@das-labor.org> Reviewed-by: Axel Davy <axel.d...@ens.fr> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=827fee059e702b22c6f5e4a61fb1aff3e926899d Author: Patrick Rudolph <s...@das-labor.org> Date: Sat Nov 14 13:02:43 2015 +0100 st/nine: Fix resource9 private data Store a copy of GUID in the header that is under our control and use it as key for the hashtable instead of using the application provided pointer. The application might change the memory after leaving the function. Fixes a crash for issue https://github.com/iXit/Mesa-3D/issues/130 Signed-off-by: Patrick Rudolph <s...@das-labor.org> Reviewed-by: Axel Davy <axel.d...@ens.fr> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5c79bd666b1163de42d6b4c0fc1a7fa2fd3c6b8e Author: Patrick Rudolph <s...@das-labor.org> Date: Sat Nov 14 12:59:46 2015 +0100 st/nine: Print GUID instead of pointer To ease debugging print the GUID instead of the pointer to it. Signed-off-by: Patrick Rudolph <s...@das-labor.org> Reviewed-by: Axel Davy <axel.d...@ens.fr> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2a4d1509c8de5973871a69aa64b4f92d73351e0e Author: Patrick Rudolph <s...@das-labor.org> Date: Thu Sep 24 19:57:51 2015 +0200 st/nine: Fix use of uninitialized memory The values of box.z and box.depth weren't set and lead to a crash. Signed-off-by: Patrick Rudolph <s...@das-labor.org> Reviewed-by: Axel Davy <axel.d...@ens.fr> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=924038c08f03e8f55522951a6ae27d9fab42e3a1 Author: Patrick Rudolph <s...@das-labor.org> Date: Wed Sep 23 16:30:37 2015 +0200 st/nine: Fix clear for multisample mismatch depth-stencil Tests show in case of multisample mismatch between the depth-stencil buffer and the render target, then it is not cleared. Fixes failing WINE test visual.c test_multisample_mismatch(). Signed-off-by: Patrick Rudolph <s...@das-labor.org> Reviewed-by: Axel Davy <axel.d...@ens.fr> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7f58ba45a8ef043fba98cdd56c122fe5e3091332 Author: Patrick Rudolph <s...@das-labor.org> Date: Mon Aug 31 19:17:13 2015 +0200 st/nine: Fix Volumetexture9_LockBox Check for valid locked box dimensions. Fixes failing wine tests device.c test_lockbox_invalid. Signed-off-by: Patrick Rudolph <s...@das-labor.org> Reviewed-by: Axel Davy <axel.d...@ens.fr> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=35047681ffc1b48f09fe3cedc15c9889eecef907 Author: Axel Davy <axel.d...@ens.fr> Date: Sun Aug 23 01:09:44 2015 +0200 st/nine: Fix ATI2 pitch for non-square Fixes crash for non-square textures. We were using the height instead of the width for some calculations. Signed-off-by: Axel Davy <axel.d...@ens.fr> Reviewed-by: Patrick Rudolph <s...@das-labor.org> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=eeeab8d6b48ff83c0f42480fcd43031c34bda33f Author: Patrick Rudolph <s...@das-labor.org> Date: Mon Nov 9 19:30:13 2015 +0100 st/nine: Support D3DFMT_R8G8B8 Add support for D3DFMT_R8G8B8. It allows format conversion for surfaces of pool scratch. Usually gallium formats equivalents for d3d9 formats have their names reversed. The gallium format PIPE_FORMAT_R8G8B8_UNORM is the right equivalent here, and its name is likely wrong (reversed). Fixes a crash in TmNationsForever. Signed-off-by: Patrick Rudolph <s...@das-labor.org> Reviewed-by: Axel Davy <axel.d...@ens.fr> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a3e7525ada97fe81fe91fc19b983d2623d7572df Author: Patrick Rudolph <s...@das-labor.org> Date: Sat Dec 19 07:43:08 2015 +0100 st/nine: Use cso for viewport Use CSO to catch redundant viewport changes. Signed-off-by: Patrick Rudolph <s...@das-labor.org> Reviewed-by: Axel Davy <axel.d...@ens.fr> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=495727af6b6568e152703d8e3e518ee56ec64106 Author: Patrick Rudolph <s...@das-labor.org> Date: Sat Dec 12 10:22:12 2015 +0100 st/nine: Fix shade mode flat Shade mode flat is only working if pixelshaders have interpolate set to TGSI_INTERPOLATE_COLOR on color inputs. Fixes failing WINE tests visual.c test_shademode(). Signed-off-by: Patrick Rudolph <s...@das-labor.org> Reviewed-by: Axel Davy <axel.d...@ens.fr> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fa887ba65b58c17c4a452c864f632c2a529a6f64 Author: Patrick Rudolph <s...@das-labor.org> Date: Thu Dec 10 20:08:03 2015 +0100 st/nine: Clear rendertarget on creation Clear every rendertarget on creation. Fixes https://github.com/iXit/Mesa-3D/issues/139 Signed-off-by: Patrick Rudolph <s...@das-labor.org> Reviewed-by: Axel Davy <axel.d...@ens.fr> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b142f616214c810505c63c6a22f044041dab37a7 Author: Patrick Rudolph <s...@das-labor.org> Date: Sat Dec 5 14:14:38 2015 +0100 st/nine: Allow ColorFill on D3DFMT_NULL surfaces Report success instead of failing as there's no resource for those surfaces. Fixes a crash in Crysis: Warhead. Signed-off-by: Patrick Rudolph <s...@das-labor.org> Reviewed-by: Axel Davy <axel.d...@ens.fr> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=04e22a04a61e0388ccc5d8c65f79bc3cfa5ac3bc Author: Axel Davy <axel.d...@ens.fr> Date: Sat Dec 12 19:20:28 2015 +0100 st/nine: Introduce STREAMFREQ state Previous vertex elements code update was protected by 'if ((group & (NINE_STATE_VDECL | NINE_STATE_VS)) || state->changed.stream_freq & ~1)' itself protected by 'if (group & (NINE_STATE_COMMON | NINE_STATE_VS))' If no state is changed except the stream frequency, no update would happen. This patch solves the problem by adding a new NINE_STATE_STREAMFREQ state. Another way would be to add state->changed.stream_freq & ~1 check to the main test. Signed-off-by: Axel Davy <axel.d...@ens.fr> Reviewed-by: Patrick Rudolph <s...@das-labor.org> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=15ce2778fb7a530ab000f453b2a18c1edbaee59c Author: Axel Davy <axel.d...@ens.fr> Date: Sat Dec 12 19:11:10 2015 +0100 st/nine: Catch redundant SetStreamSourceFreq calls Some apps do redundant SetStreamSourceFreq calls. Catch them to improve performance. Signed-off-by: Axel Davy <axel.d...@ens.fr> Reviewed-by: Patrick Rudolph <s...@das-labor.org> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ea3f504f7caf9900f71a52f1711baf8a50fec490 Author: Patrick Rudolph <s...@das-labor.org> Date: Sun Nov 15 11:26:25 2015 +0100 st/nine: Squash indexbuffer9 and vertexbuffer9 The indexbuffer9 codebase was lagging behind the one of vertexbuffer9. Add buffer9 as common code base for indexbuffer9 and vertexbuffer9. Signed-off-by: Patrick Rudolph <s...@das-labor.org> Reviewed-by: Axel Davy <axel.d...@ens.fr> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b6bb8d561adece9e10603f560c23c1b1fdd5e0dd Author: Axel Davy <axel.d...@ens.fr> Date: Sun Nov 15 17:10:40 2015 +0100 st/nine: Unset vtxbuf on reset We forgot to reset vtxbuf. This fixes some crashes. Signed-off-by: Axel Davy <axel.d...@ens.fr> Reviewed-by: Patrick Rudolph <s...@das-labor.org> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b63c144d1e12c0052fe5e697d9fa031eb1439bbe Author: Axel Davy <axel.d...@ens.fr> Date: Sat Jan 30 11:39:21 2016 +0100 st/nine: Use pipe_resource_reference for vtxbuf This seems cleaner to actually reference the resources for vtxbuf, rather than relying on the fact the bound d3d streams do. Signed-off-by: Axel Davy <axel.d...@ens.fr> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b5876e47623a20c9a123d33927f97bada7c95f3c Author: Axel Davy <axel.d...@ens.fr> Date: Sat Nov 7 17:47:06 2015 +0100 st/nine: Use ff vertex shader when position_t is used When an application sets a vertex shader, we are supposed to use it, and when no vertex shader are set, we are supposed to revert to fixed function vertex shader. It seems there is an exception: when the vertex declaration has a position_t index, we should revert to fixed function vertex shader. Up to know we were checking if device->state.vs is set to know whether to use programmable shader or not. With this commit we determine whether we use programmable shader or not when vertex shader/declaration are set, but stateblocks do complicate things a bit. Signed-off-by: Axel Davy <axel.d...@ens.fr> Reviewed-by: Patrick Rudolph <s...@das-labor.org> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=531acbc56b987a1ea288b95046e4181e34b611e8 Author: Patrick Rudolph <s...@das-labor.org> Date: Thu May 28 20:45:01 2015 +0200 st/nine: Don't increment refcount on VertexDeclaration creation failure NineUnknown_ctor increments the refcount even in case of an error. Restructure the code to prevent refcount increments. Fixes a couple of wine tests. Signed-off-by: Patrick Rudolph <s...@das-labor.org> Reviewed-by: Axel Davy <axel.d...@ens.fr> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b39fd5b1daa8baac3d792c0032d7a12f6eaf0392 Author: Axel Davy <axel.d...@ens.fr> Date: Mon Aug 24 19:36:55 2015 +0200 st/nine: Change StretchRect check order Textures in SYSTEMMEM don't have resources attached. Instead of returning an error for them, StretchRect was crashing. This changes the check order to fix that case. Signed-off-by: Axel Davy <axel.d...@ens.fr> Reviewed-by: Patrick Rudolph <s...@das-labor.org> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a82e67812a18208643919f44066452bd06558797 Author: Axel Davy <axel.d...@ens.fr> Date: Sun Aug 16 21:39:42 2015 +0200 st/nine: Initialize lights in stateblocks This fixes a crash. Signed-off-by: Axel Davy <axel.d...@ens.fr> Reviewed-by: Patrick Rudolph <s...@das-labor.org> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9c1d93f8e71506cff14596ab0bfc84ea23411c9e Author: Patrick Rudolph <s...@das-labor.org> Date: Tue Sep 22 16:10:40 2015 +0200 st/nine: Fix fixed-function blendweights The last weighted element is one minus the sum of all previous weights. Fixes WINE test visual.c test_vertex_blending. Signed-off-by: Patrick Rudolph <s...@das-labor.org> Reviewed-by: Axel Davy <axel.d...@ens.fr> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cc830dc214d8508baa4090c1ee4e63941ff28eb7 Author: Patrick Rudolph <s...@das-labor.org> Date: Tue Sep 22 14:30:35 2015 +0200 st/nine: Always normalize hitDir Signed-off-by: Patrick Rudolph <s...@das-labor.org> Reviewed-by: Axel Davy <axel.d...@ens.fr> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ed7e1046b6ef800f2c2a5ccd54605f4fdb59258b Author: Patrick Rudolph <s...@das-labor.org> Date: Tue Sep 22 13:24:08 2015 +0200 st/nine: Replace r[0] with tmp Replace r[0] with tmp to ease code reading. Signed-off-by: Patrick Rudolph <s...@das-labor.org> Reviewed-by: Axel Davy <axel.d...@ens.fr> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9856203f5a589c9ab8e9db240db77f8ec191a3de Author: Patrick Rudolph <s...@das-labor.org> Date: Mon Sep 28 19:44:26 2015 +0200 st/nine: Fix ff calculation of midVec In case of non local viewer the value has to be subtracted. Fixes failing WINE tests in test_specular_lighting() (visual.c) Signed-off-by: Patrick Rudolph <s...@das-labor.org> Reviewed-by: Axel Davy <axel.d...@ens.fr> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=921f3eac58238c308352c4d83b4df076c3ef9c56 Author: Patrick Rudolph <s...@das-labor.org> Date: Tue Sep 22 12:57:37 2015 +0200 st/nine: Implement D3DRS_SPECULARENABLE Implement fixed function D3DRS_SPECULARENABLE. Fixes failing WINE tests in test_specular_lighting() (visual.c) Signed-off-by: Patrick Rudolph <s...@das-labor.org> Reviewed-by: Axel Davy <axel.d...@ens.fr> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9c26fa1b13d65ae13cba7da7eadc26cb4e20ddd5 Author: Patrick Rudolph <s...@das-labor.org> Date: Tue Sep 22 17:29:42 2015 +0200 st/nine: Fix D3DRS_LOCALVIEWER being ignored Set key->localviewer to D3DRS_LOCALVIEWER. Signed-off-by: Patrick Rudolph <s...@das-labor.org> Reviewed-by: Axel Davy <axel.d...@ens.fr> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=aa4454ae85770c61adf8c0c0ed323a18e56bc126 Author: Axel Davy <axel.d...@ens.fr> Date: Wed Nov 11 10:15:19 2015 +0100 st/nine: Fix rounding issue with vs1.1 a0 reg vs1.1 rounds a0 to lowest integer, while other versions do round to closest. To use the same path as the other versions (with ARR), we were substracting 0.5 for vs1.1 to get round to lowest. This gives wrong result if a0 is set to 0: round(0 - 0.5) = -1 Instead just use ARL for vs1.1 Signed-off-by: Axel Davy <axel.d...@ens.fr> Reviewed-by: Patrick Rudolph <s...@das-labor.org> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=dbb03f6b5be628e65e09cc822d71f9e6b962a070 Author: Axel Davy <axel.d...@ens.fr> Date: Sat Oct 17 13:54:18 2015 +0200 st/nine: Fix D3DPMISCCAPS_FOGANDSPECULARALPHA support The documentation of the flag doesn't make sense. To sum up the doc, if not set, specular alpha contains fog, and if set specular alpha contains 0 (except for ff). However in practice when the flag is there, apps do use specular alpha as if it could be used normally, which makes much more sense than the doc. Signed-off-by: Axel Davy <axel.d...@ens.fr> Reviewed-by: Patrick Rudolph <s...@das-labor.org> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9298a0b81b29ee339e33a3b343e9023f174adb88 Author: Patrick Rudolph <s...@das-labor.org> Date: Thu Dec 24 11:32:37 2015 +0100 st/nine: Fix AlphaCmpCaps AlphaCmpCaps should advertise D3DPCMPCAPS_NEVER as well. Fixes https://github.com/iXit/Mesa-3D/issues/142 Signed-off-by: Patrick Rudolph <s...@das-labor.org> Reviewed-by: Axel Davy <axel.d...@ens.fr> _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit