Re: Fate of PulseAudio in WINE

2009-06-16 Thread Matteo Bruni
instances (such as the mmap access to the sound buffers), maybe only when PulseAudio is present, could be an acceptable solution. I don't think the increased latencies would be a problem, as, at least from my personal experience, Windows-DirectSound has quite high latencies (even pre-Windows Vista, ex. Windows XP). That said, certainly having someone maintaining "Wine audio department" would be great. Just my two cents... Matteo Bruni

Re: server/fd.c: Prevent using uninitialized pointers

2009-06-30 Thread Matteo Bruni
I'm quite sure that C standards guarantee global variables are initialized to 0. 2009/6/30 Daniel Santos : > Some pointers are getting used prior to initialization.  It would appear that > the current compilers are initializing them to zero or we've been lucky. > > > > > >

Re: wpp: add I/O hooks [try 2]

2009-07-14 Thread Matteo Bruni
Hi Juan, these I/O hooks are needed to use wpp as a preprocessor for d3d shader assembling, where I have to read files with CreateFile/ReadFile (Windows-style) or from memory. I plan to send the assembler patches not immediately (in particular, the patch which makes use of wpp is not so near). On

D3D shader assembler

2009-07-19 Thread Matteo Bruni
om wined3d. They are used only internally, so they should not be a problem, but I'd like to hear if you think differently (ex. it is better to rename them?). Thank you, Matteo Bruni asmshader.txt.bz2 Description: BZip2 compressed data

Re: D3D shader assembler

2009-07-19 Thread Matteo Bruni
2009/7/19 Henri Verbeet : > 2009/7/19 Matteo Bruni : >> Hi to everybody, >> I'm sending here the main assembler patch for reviews and suggestions. >> It is bzipped as it is quite a big patch, but I couldn't find a >> meaningful way to split it. > It rea

RE: D3D shader assembler (Matteo Bruni)

2009-07-20 Thread Matteo Bruni
2009/7/20 "Luis C. Busquets Pérez" : > I read several months ago that the itnetion was to create the assembler > inside the wined3d and then use its functionality inside the diverse d3dx9 > implementations. Has this changed? I think it was Stefan Dösinger sho > proposed it: > > d3dx -> wined3d asse

Re: D3D shader assembler

2009-07-20 Thread Matteo Bruni
2009/7/20 Henri Verbeet : > 2009/7/20 Matteo Bruni : >> That function, in particular, should really be into asmparser.c and >> not be visible from outside. Then the wine_dbg_sprintf() function >> comes really handy in this situation, I didn't know it. Note also that >

D3D shader assembler (round 2)

2009-08-12 Thread Matteo Bruni
ely though) Looking better at this, I noticed that I wasn't checking the register number, while native has this check. So I reworked this part, and now the code is as the attached file. Regarding Henri's review, I followed everything, except keeping my_alloc/realloc/free (now asm_allo

Re: [1/18] d3dx9: Add shader assembler private definitions

2009-08-16 Thread Matteo Bruni
2009/8/16 Vincent Povirk : > Don't send patches that only add unused code. > Well, to be true all the first 12 patches add code which is effectively used only from patch 13 onwards. But I couldn't find a better way to split the patches in manageable pieces while avoiding these kind of issues.

Re: [13/18] wpp: Add wpp_set_exit_on_error function

2009-08-17 Thread Matteo Bruni
2009/8/17 Juan Lang : > Hi Matteo, > > this approach seems pretty inflexible to me: > > +/* Whether to exit the app on errors (default: true) */ > +extern void wpp_set_exit_on_error( int exit ); > > @@ -646,7 +654,8 @@ int ppy_error(const char *s, ...) >        va_start(ap, s); >        generic_msg

Re: [1/18] d3dx9: Add shader assembler private definitions

2009-08-18 Thread Matteo Bruni
sulting patch needs to have a working lexer, parser, bytecode writer and the glue among them, so it can't be made smaller than so much, I believe. Anyway I'm going to try to rework the patches the way you suggest, we'll see what comes up... Thanks, Matteo Bruni.

Re: [1/18] d3dx9: Add shader assembler private definitions

2009-08-18 Thread Matteo Bruni
2009/8/18 Henri Verbeet : > 2009/8/18 Matteo Bruni : >> constructs, single instructions, ...) but it seems to be quite a work >> and in any case the resulting patch needs to have a working lexer, >> parser, bytecode writer and the glue among them, so it can't be made

Re: winemp3.acm: link to system libmpg123.so

2009-08-19 Thread Matteo Bruni
2009/8/19 Roderick Colenbrander : >> The libmpg123 library is not shipped in any rpmfusion repository for Fedora >> 10, and possibly for other distros. This means anyone who wants mp3 support >> would need to install libmpg123 from source. However, rpmfusion for Fedora >> 10 has libmad, lame and tw

Re: [5/9] wpp: Handle remaining memory allocation failures [try 2]

2009-10-02 Thread Matteo Bruni
2009/10/2 Alexandre Julliard : > Matteo Bruni writes: > >> @@ -82,8 +82,7 @@ void *pp_xmalloc(size_t size) >>      res = malloc(size); >>      if(res == NULL) >>      { >> -        fprintf(stderr, "Virtual memory exhausted.\n"); >> -  

Re: [3/4] d3dx9: Implement D3DXAssembleShader function, really basic shader assembler.

2009-12-29 Thread Matteo Bruni
2009/12/29 Henri Verbeet : > 2009/12/28 Matteo Bruni : >> > Why do you need the fake parser? Can't you just not support those > shader versions yet? There's also (in general) not much of a point in > adding structure fields that aren't used yet. > I added the

Re: [3/4] d3dx9: Implement D3DXAssembleShader function, really basic shader assembler.

2009-12-29 Thread Matteo Bruni
2009/12/29 Alexandre Julliard : > Matteo Bruni writes: > >> + >> +%option reentrant bison-bridge > > These won't work on old flex versions, and will get you in trouble with > the flex police (aka Michael Stefaniuc ;-) > Alexandre, now you have another person

Re: [3/4] d3dx9: Implement D3DXAssembleShader function, really basic shader assembler.

2009-12-29 Thread Matteo Bruni
2009/12/29 Henri Verbeet : > 2009/12/29 Matteo Bruni : >> I added the fake parser for two reasons: because I have to initialize >> an asm_parser structure anyway in the create__parser functions >> (and I prefer to use parser_fake for the unimplemented shader versions >

Re: Student Interested in Google Summer of Code 2010

2010-01-28 Thread Matteo Bruni
2010/1/28 Stefan Dösinger : > On Wednesday 27 January 2010 23:41:27 Henri Verbeet wrote: >> The problem with the effect interface is that there are several fairly >> large parts/dependencies to implement. For example, it has important >> dependencies on both the (non-existent) HLSL compiler and the

Re: [1/3] d3dx9: Partial implementation of D3DXAssembleShader function. [try 2]

2010-02-05 Thread Matteo Bruni
Seems like I'm unable to review my code... > >> +    if(desc->pos + len > desc->size) len = desc->size - desc->pos; > It's usually safer to write expressions like that as "if (len > > desc->size - desc->pos)" because "desc->pos + len" can wrap around if > len is large, while "desc->size - desc->po

Re: [1/3] d3dx9: Partial implementation of D3DXAssembleShader function. [try 3]

2010-02-08 Thread Matteo Bruni
2010/2/8 Stefan Dösinger : > > Am 08.02.2010 um 16:33 schrieb Matteo Bruni: > >> Other than the things Henri last mentioned, there are some more small >> changes (make some struct const/static, whitespace fixes, remove some >> useless cruft, ...) particularly in patc

Re: Congratulations!

2010-03-30 Thread Matteo Bruni
2010/3/30 Juan Lang : > Hi Matteo, just wanted to congratulate you on getting your > DRDXAssembleShader patches accepted.  I know it can take a fair amount > of persistence to get something substantial committed, and it seems > that many lack the patience.  Well done! > --Juan > Thank you very muc

Re: HLSL Compiler and d3dcompiler_xx.dll

2010-04-14 Thread Matteo Bruni
2010/4/14 Matijn Woudt : > On Wed, Apr 14, 2010 at 4:27 PM, Stefan Dösinger > wrote: >> >> Am 14.04.2010 um 15:44 schrieb Henri Verbeet: >> >>> On 14 April 2010 15:07, Stefan Dösinger wrote: > 3) Implement the compiler in d3dcompiler_xx. I wrote a basic HLSL compiler as university proje

Re: HLSL Compiler and d3dcompiler_xx.dll

2010-04-14 Thread Matteo Bruni
> dlls/wineshader doesn't exist in that tree? > Check if you are in the correct branch (should be the "compiler" branch in his tree). >> Lastly, a bit on testing the compiler. I'm not sure trying to get >> exactly the same bytecode as native is a feasible objective: while for >> an assembler prog

Re: d3dx9: Add some version-specific checks in the shader assembler.

2010-05-19 Thread Matteo Bruni
2010/5/19 Stefan Dösinger : > > Am 18.05.2010 um 14:55 schrieb Matteo Bruni: >> +    if(!check_reg_type(src, vs_3_reg_allowed)) { >> +        asmparser_message(This, "Line %u: Source register %s not supported >> in VS 3.0\n", >>

Re: comdlg32: Fix Italian translation

2010-05-30 Thread Matteo Bruni
> - LTEXT "File di &Tipo:", 1089, 6, 104, 90, 9 > + LTEXT "&Tippo del file:", 1089, 6, 104, 90, 9 One 'p' is enough :). More importantly, this and the shell32 patch have mangled accented letters (maybe the conversion to UTF8 didn't work out well?). No problems in the taskmgr patch though. By the

Re: comdlg32: Fix Italian translation

2010-05-31 Thread Matteo Bruni
2010/5/31 Luca Bennati : > > > 2010/5/31 Matteo Bruni >> >> > - LTEXT "File di &Tipo:", 1089, 6, 104, 90, 9 >> > + LTEXT "&Tippo del file:", 1089, 6, 104, 90, 9 >> >> One 'p' is enough :). More importantly, this a

Re: [1/3] d3dx9: Allow sampler declaration without sampler type.

2010-06-10 Thread Matteo Bruni
2010/6/10 Stefan Dösinger : > > Am 10.06.2010 um 16:06 schrieb Matteo Bruni: >> <0001-d3dx9-Allow-sampler-declaration-without-sampler-type.txt> > The patch looks ok, but I am wondering if the validator complains about > typeless samplers. And if not, I guess the interesti

Re: back from Russia... learning d3dx9

2010-07-06 Thread Matteo Bruni
2010/7/6 Misha Koshelev : > Thank you for the well wishes James and Dan. Will def keep the test bot in > mind. Unfortunately no WineTestBot machine has any d3dx9_xx.dll installed (or so it was last time I checked), so no luck there. I don't know if it's possible to install the latest DirectX SDK t

Re: ok sorry dumb question... running make test with native DLLs

2010-07-06 Thread Matteo Bruni
2010/7/6 Misha Koshelev : > Oops good thing I did not yet figure out how to use a native d3dx9_36 then > so no compromise of my ability to contribute. > > Just to clarify then... I may NOT use wine to monitor calls within a native > DLL? Specifically, I may not determine what parameters one native

Re: [PATCH 01/11] d3d10: Add the ID3D10Blob interface.

2010-07-26 Thread Matteo Bruni
Hello Rico, from d3d10misc.h of latest DirectX SDK: // ID3D10Blob has been made version-neutral and moved to d3dcommon.h. d3dcommon.h seems to be an idl-generated header. From what I can see up to now, only your first patch is "wrong", the rest just needs to be fixed to include d3dcommon.h where

Re: [PATCH 01/11] d3d10: Add the ID3D10Blob interface.

2010-07-27 Thread Matteo Bruni
2010/7/27 Henri Verbeet : > On 26 July 2010 21:21, Matteo Bruni wrote: >> // ID3D10Blob has been made version-neutral and moved to d3dcommon.h. >> > Actually, since this comes up now, perhaps this is a good time to > think about implementing d3dcompiler and d3dx10? I think w

Re: [PATCH 01/11] d3d10: Add the ID3D10Blob interface.

2010-07-27 Thread Matteo Bruni
2010/7/27 Henri Verbeet : > On 27 July 2010 16:37, Matteo Bruni wrote: >> Yes, this is the best time I believe. Some time ago there was >> agreement to implement the shader compiler in d3dcompiler, with the >> d3dx9/d3d10/d3dx10 compiler function calls forwarding to d3dcom

Re: [3/5] d3dx9: Introduce a function for copying pixels.

2012-10-29 Thread Matteo Bruni
2012/10/29 Christian Costa : > >> >> pixel_format = get_format_info(src_desc.Format); >> -if (pixel_format->type != FORMAT_ARGB) >> -{ >> -FIXME("Unsupported pixel format %#x\n", src_desc.Format); >> -return E_NOTIMPL; >> -} >> +if (pixel_format->type == FORMAT_

Re: ntdll: Fixed some heap allocation stalls

2012-11-03 Thread Matteo Bruni
2012/11/2 Steaphan Greene : > Running a game in wine showed it performing terribly. I traced this to the > fact that it allocates and deallocates tiny memory chunks over and over (I > suspect it's in C++ and passing things by value everywhere). This led to > huge stalls because the heap bins were

Re: ntdll: Fixed some heap allocation stalls

2012-11-03 Thread Matteo Bruni
2012/11/3 Steaphan Greene : > On 11/03/2012 09:04 AM, Matteo Bruni wrote: >> >> 2012/11/2 Steaphan Greene: >>> >>> Running a game in wine showed it performing terribly. I traced this to >>> the >>> fact that it allocates and deallocates tiny mem

Re: [PATCH] d3dx9_36/tests: Fix broken line test

2012-11-27 Thread Matteo Bruni
2012/11/27 Detlef Riekenberg : > While inspecting a test failure, i found only > 3 possible results for the line test: > - d3dx9_36.dll not present > - all tests skipped > line.c:146: Tests skipped: Failed to create IDirect3DDevice9 object > 0x8876086c > - refcount test failed > line.c:113: Te

Re: [PATCH 1/7] d3dx9: Handle invalid byte code in D3DXFindShaderComment().

2013-01-02 Thread Matteo Bruni
2013/1/1 Rico Schüller : > --- > dlls/d3dx9_36/shader.c | 16 +++- > dlls/d3dx9_36/tests/shader.c | 21 + > 2 Dateien geändert, 32 Zeilen hinzugefügt(+), 5 Zeilen entfernt(-) > +static inline BOOL is_valid_bytecode(DWORD token) +{ +token &= 0x; +

Re: d3dcompiler_43: Avoid signed-unsigned integer comparisons

2013-01-02 Thread Matteo Bruni
2013/1/1 Andrew Talbot : > Changelog: > d3dcompiler_43: Avoid signed-unsigned integer comparisons. > > diff --git a/dlls/d3dcompiler_43/bytecodewriter.c > b/dlls/d3dcompiler_43/bytecodewriter.c > index d10f6bc..17289d2 100644 > --- a/dlls/d3dcompiler_43/bytecodewriter.c > +++ b/dlls/d3dcompile

Re: [PATCH 3/3] d3dx9: Use all 32 bits as mask.

2013-01-10 Thread Matteo Bruni
2013/1/10 Rico Schüller : > --- > dlls/d3dx9_36/texture.c | 6 +++--- > 1 Datei geändert, 3 Zeilen hinzugefügt(+), 3 Zeilen entfernt(- > > -DWORD i, v; > +DWORD i, v, mask32 = format->bits[c] == 32 ? -1 : ((1 << > format->bits[c]) - 1); Usually we prefer to use ~0U instead of -1

Re: wined3d: Rebind texture before checking for its content in check_fbo_compat().

2013-01-26 Thread Matteo Bruni
2013/1/26 Stefan Dösinger : > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Am 2013-01-26 22:32, schrieb Matteo Bruni: >> + >> gl_info->fbo_ops.glFramebufferTexture2D(GL_FRAMEBUFFER, >> GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, tex, 0); > Do you really have

Re: d3dx9: Implement D3DXSHEvalConeLight

2013-02-12 Thread Matteo Bruni
Hi, in addition to what I already told you in #winehackers (that is, please rename the test struct field red_in to red_out and red_out to red_expected, or something like that), you should take the chance to do some more cleanup. That means e.g. use "const" instead of "CONST" as Rico already sugges

Re: [PATCH 1/2] wined3d: Make (wined3d_)surface_depth_blt_fbo handle locations other than SFLAG_INTEXTURE.

2013-02-17 Thread Matteo Bruni
2013/2/17 Henri Verbeet : > On 17 February 2013 18:10, Matteo Bruni wrote: >> @@ -6168,18 +6172,10 @@ HRESULT surface_load_location(struct wined3d_surface >> *surface, DWORD location, c >> >> if (surface->resource.usage & WINED3DUSAGE_DEPTHSTENCIL)

Re: d3dx9: Avoid expensive computations

2013-02-27 Thread Matteo Bruni
2013/2/26 Rico Schüller : > Hi Nozomi, > > this is pretty fast. Just some numbers (run time on my machine, so it might > not be that representative)... > > before: 43s > previous patch: 27s > this patch: 21s > native: 16s > > So from the speed point of view, it's a lot closer than the rest. > > Tho

Re: d3dx9 [patch 1/2]: Implement D3DXSHEvalConeLight

2013-03-01 Thread Matteo Bruni
2013/3/1 Nozomi Kodama : > Why is this patch marked as "not applied" by the testbot? > In my computer, with the latest git, it applies fine. > > Is there a problem with testbot? > > Nozomi > > Yeah, the old testbot has some issues. FWIW the patches applied just fine for me. Now, I know I'm going

Re: d3dx9 [patch 1/2, try 3]: Implement D3DXSHEvalConeLight

2013-03-07 Thread Matteo Bruni
2013/3/6 Nozomi Kodama : > hello > > Still problems with this patch? > > Nozomi. > FWIW, both patches are fine to me.

Re: d3dx9 [patch 1/2]: Implement D3DXSHEvalSphericalLight

2013-03-14 Thread Matteo Bruni
2013/3/14 Nozomi Kodama : > No news about these patches? > > > Nozomi? > > Hmm, I was under the impression that these patches were already picked up in git, but I see I was mistaken. Anyway they look okay to me, except for a bit in the tests from the first patch that I noticed just now by reading

Re: d3dx9 [patch 1/2, try 3]: Implement D3DXSHEvalSphericalLight

2013-03-15 Thread Matteo Bruni
2013/3/15 Nozomi Kodama : > Patch series is fine to me.

Re: d3dx9 [patch1/3, try 2]: Do not use relative error for small numbers

2013-04-02 Thread Matteo Bruni
2013/4/1 Nozomi Kodama > > Since there are only at most 7 significant digits for a float, we must not be > too picky about the expected difference for small numbers > > -#define relative_error(exp, out) ((exp == 0.0f) ? fabs(exp - out) : > (fabs(1.0f - (out) / (exp > +#define relative_error

Re: d3dx9 [patch 1/2, resend]: Floatify fabs into fabs

2013-04-08 Thread Matteo Bruni
2013/4/7 Nozomi Kodama : > Both patches are fine for me (note that the email subject is missing an "f" but the actual patch has the correct title).

Re: [PATCH 8/8] wined3d: Skip non-textureable formats in check_fbo_compat().

2013-04-10 Thread Matteo Bruni
2013/4/10 Henri Verbeet : > On 10 April 2013 01:35, Matteo Bruni wrote: >> --- >> dlls/wined3d/utils.c | 3 +++ >> 1 file changed, 3 insertions(+) >> >> diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c >> index da8fc7b..5010676 100644 >> ---

Re: [PATCH 1/8] wined3d: Remove useless glClearxxx calls.

2013-04-10 Thread Matteo Bruni
2013/4/10 Henri Verbeet : > On 10 April 2013 01:35, Matteo Bruni wrote: >> -/* Clear the screen */ >> -gl_info->gl_ops.gl.p_glClearColor(1.0f, 0.0f, 0.0f, 0.0f); >> -checkGLcall("glClearColor"); >> -gl_info->gl_ops.gl.p_glClearIndex(0);

Re: [PATCH 1/2] wined3d: Handle texture types via ps/vs_compile_args

2013-04-10 Thread Matteo Bruni
I guess it depends on what happens in D3D when the sampler type declared in the shader and the type of the texture bound to that sampler disagree, and it really matters only if all the current drivers have the same behavior in that regard. unbound_sampler_test() doesn't check what happens with mism

Re: [PATCH 8/8] wined3d: Skip non-textureable formats in check_fbo_compat().

2013-04-10 Thread Matteo Bruni
2013/4/10 Henri Verbeet : > On 10 April 2013 17:53, Matteo Bruni wrote: >> The idea is that, since check_fbo_compat() creates a texture of the >> specified format to attach it to a test FBO and verify that it works >> correctly, it doesn't make sense to even try if the f

Re: d3dx9: Implement D3DXSHMultilpy5

2013-04-16 Thread Matteo Bruni
2013/4/15 Nozomi Kodama : > Hello > > thanks for the review. > I don't think that calling defines is the way to go. Indeed, I tested my > patch and yours. Yours is about 12% slower than mine in my computer. > And now, we try to take care of efficiency of this dll. So, it is not the > time to incre

Re: [PATCH 2/7] wined3d: Use ARB_internalformat_query2 to check for texture format rendering and blending support, where available.

2013-04-19 Thread Matteo Bruni
Hrm, I sent the wrong version of the patch, I had actually moved the depth/stencil check earlier (so yeah, totally agree on that part). Also you're right about WINED3DFMT_FLAG_RENDERTARGET, for some reason I thought we were setting that in check_fbo_compat() but it's clearly not the case. I'm send

Re: [PATCH 1/2] wined3d: Set GL_NONE for glReadBuffer / glDrawBuffer on FBO initialization.

2013-04-25 Thread Matteo Bruni
2013/4/25 Henri Verbeet : > Seems ok, though a small comment explaining the issue this patch fixes > probably wouldn't hurt. A comment in the commit message or in the code? > On 25 April 2013 20:43, Matteo Bruni wrote: >> +if (target ==

Re: [PATCH 4/4] d3dx9_36: Remove todo in tests as it works now with last d3dxof fixes.

2013-04-30 Thread Matteo Bruni
2013/4/29 Christian Costa : > > --- > dlls/d3dx9_36/tests/xfile.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/dlls/d3dx9_36/tests/xfile.c b/dlls/d3dx9_36/tests/xfile.c > index 1238bcd..e514a5f 100644 > --- a/dlls/d3dx9_36/tests/xfile.c > +++ b/dlls/d3dx9_36/tests/xf

Re: [PATCH] d3dcompiler: Add a LUT to find compilation targets info.

2013-05-03 Thread Matteo Bruni
2013/5/2 Christian Costa : > > --- > dlls/d3dcompiler_43/compiler.c| 101 > +++-- > dlls/d3dcompiler_43/d3dcompiler_private.h |1 > 2 files changed, 81 insertions(+), 21 deletions(-) > > diff --git a/dlls/d3dcompiler_43/compiler.c b/dlls/d3dcompiler_43/com

Re: [PATCH] d3dx9_36: Implement D3DXGetShaderInputSemantics + tests.

2013-06-11 Thread Matteo Bruni
emantics(ptr ptr ptr) > @ stdcall D3DXGetShaderSamplers(ptr ptr ptr) > @ stdcall D3DXGetShaderSize(ptr) > diff --git a/dlls/d3dx9_36/shader.c b/dlls/d3dx9_36/shader.c > index 75bc9b5..3b71b4b 100644 > --- a/dlls/d3dx9_36/shader.c > +++ b/dlls/d3dx9_36/shader.c > @@ -1,6 +

Re: [PATCH] d3dx9_36: Implement D3DXGetShaderInputSemantics + tests.

2013-06-12 Thread Matteo Bruni
2013/6/12 Christian Costa : > >> > +HRESULT WINAPI D3DXGetShaderInputSemantics(const DWORD *byte_code, >> > D3DXSEMANTIC *semantics, UINT *count) >> > +{ >> > +const DWORD *ptr = byte_code; >> > +UINT i = 0; >> > + >> > +TRACE("byte_code = %p, semantics = %p, count = %p\n", byte_code, >

Re: Update Italian translation

2013-06-17 Thread Matteo Bruni
2013/6/16 Fabian Ebner : > --- > po/it.po | 40 ++-- > 1 file changed, 14 insertions(+), 26 deletions(-) #: joy.rc:42 msgid "" "After disabling or enabling a device, the connected joysticks won't be " "updated here until you restart this applet." msgstr

Re: po: Update Italian translation (try 2)

2013-06-17 Thread Matteo Bruni
2013/6/17 Fabian Ebner : > Fixed a typo and a sentence, thanks to Matteo > --- > po/it.po | 40 ++-- > 1 file changed, 14 insertions(+), 26 deletions(-) #: jscript.rc:39 msgid "'return' statement outside of function" -msgstr "" +msgstr "Istruzione 'return' fo

Re: po: Update Italian translation (try 3)

2013-06-19 Thread Matteo Bruni
2013/6/17 Fabian Ebner : > Typo fixed (finally) > --- > po/it.po | 40 ++-- > 1 file changed, 14 insertions(+), 26 deletions(-) > This one looks good to me, thanks :)

Re: [PATCH] wined3d: Implement per-stage constant in glsl fixed fonction pipeline.

2013-06-24 Thread Matteo Bruni
2013/6/24 Christian Costa : > Le 24/06/2013 09:24, Henri Verbeet a écrit : > >> On 23 June 2013 21:57, Christian Costa wrote: >>> >>> When D3DTA_CONSTANT is use in a texture stage, the generated shader uses >>> variables that are not defined making thus the compilation to fail. >>> This patch decl

Re: [PATCH 4/5] d3dx9/tests: Add ID3DXConstantTable struct test.

2013-07-25 Thread Matteo Bruni
2013/7/24 Rico Schüller : > --- > dlls/d3dx9_36/tests/shader.c | 308 > +++ > 1 file changed, 308 insertions(+) > This is okay, but as a followup can you add some tests with mixed-type structs? Something like: struct { float f; int i; bool b; }

Re: [PATCH 3/5] d3dx9: Add support for structs to ID3DXConstantTable.

2013-07-25 Thread Matteo Bruni
2013/7/24 Rico Schüller : > --- > dlls/d3dx9_36/shader.c | 79 > -- > 1 file changed, 77 insertions(+), 2 deletions(-) > So there was actually a logic (an insane one, but yeah...). Have you found any game actually using this? Annoying question: hav

Re: [1/1] kernel32: Implemented basic NUMA functions to replace the stubs

2013-07-29 Thread Matteo Bruni
2013/7/29 Chris Moeller : > without looking very deeply into the CRT source code. You're talking about MS source code, right? That makes you tainted for contributing to Wine at the very least for C runtime-related code :( If you haven't looked into any other source code, this patch might be okay (

Re: [1/1] kernel32: Implemented basic NUMA functions to replace the stubs

2013-07-29 Thread Matteo Bruni
2013/7/30 Chris Moeller : > > On Jul 29, 2013, at 11:22 AM, Matteo Bruni wrote: > >> 2013/7/29 Chris Moeller : >>> without looking very deeply into the CRT source code. >> >> You're talking about MS source code, right? That makes you tainted for >>

Re: [PATCH 4/5] d3dx9/tests: Add ID3DXConstantTable struct test.

2013-07-30 Thread Matteo Bruni
2013/7/30 Rico Schüller : > Hi Matteo, > > please see the attached patch. > > > On 25.07.2013 16:13, Matteo Bruni wrote: >> >> 2013/7/24 Rico Schüller : >>> >>> --- >>> dlls/d3dx9_36/tests/shader.c | 308 >>> ++

Re: [PATCH 4/5] d3dx9/tests: Add ID3DXConstantTable struct test.

2013-08-01 Thread Matteo Bruni
2013/8/1 Rico Schüller : > On 31.07.2013 00:14, Matteo Bruni wrote: >> >> 2013/7/30 Rico Schüller : >>> >>> Hi Matteo, >>> >>> please see the attached patch. >>> >>> >>> On 25.07.2013 16:13, Matteo Bruni wrote: >>

Re: d3dx9 [patch 1/2]: Implement D3DXCreatePolygon

2013-08-01 Thread Matteo Bruni
2013/8/1 Nozomi Kodama : > +vertices = HeapAlloc(GetProcessHeap(), 0, 2 * (sides + 1) * sizeof(D3DXVECTOR3)); +if (!vertices) +{ +TRACE("Not memory enough for vertex buffer\n"); +polygon->lpVtbl->Release(polygon); +return E_OUTOFMEMORY; +} + +hr = polygo

Re: [PATCH 4/5] d3dx9/tests: Add ID3DXConstantTable struct test.

2013-08-02 Thread Matteo Bruni
2013/8/1 Matteo Bruni : > Instead of generating an entry for the struct with the correct > members, the compiler generates TWO entries for sbnf, one with all its > fields in D3DXRS_FLOAT4 and the other with D3DXRS_BOOL. Which, if I'm > reading this correctly, makes 0

Re: [PATCH 2/7] wined3d: Use PBOs for dynamic volumes (try 2)

2013-08-26 Thread Matteo Bruni
2013/8/26 Stefan Dösinger : > Try 2: > *) Require only GPU access for buffers > *) Reduce number of checkGLcall invocations > *) Remove a return from an ERR case > --- > dlls/wined3d/utils.c | 1 + > dlls/wined3d/volume.c | 168 > - > d

Re: [PATCH 1/5] d3d8/tests: Add cnd instruction test.

2013-09-03 Thread Matteo Bruni
2013/9/3 Henri Verbeet : > On 2 September 2013 23:04, Matteo Bruni wrote: >> +float quad1[] = { >> +-1.0, -1.0, 0.1, 0.0,0.0,1.0, >> + 0.0, -1.0, 0.1, 1.0,0.0,1.0, >> +-1.0,0.0, 0.1, 0.0,1.

Re: [PATCH] wined3d: Fix per-stage constant in GLSL fixed function pipeline + add tests. (try 2)

2013-09-04 Thread Matteo Bruni
ted when needed. Tests > are also added. > > Thanks to Matteo Bruni for review and support. > > Try 2: > - update with latest git Hi, I have a few small nits still, please bear with me... > --- > dlls/d3d9/tests/visual.c | 80 >

Re: [PATCH] d3dx9: Use struct d3dx_object for objects.

2013-09-25 Thread Matteo Bruni
2013/9/24 Rico Schüller : > --- > dlls/d3dx9_36/effect.c | 248 > +++-- > 1 Datei geändert, 95 Zeilen hinzugefügt(+), 153 Zeilen entfernt(-) > I definitely like the direction this patch takes. @@ -5068,6 +5009,9 @@ static HRESULT d3dx9_parse_resource(s

Re: [PATCH] d3dx9: Move object initialization into a separate function.

2013-10-08 Thread Matteo Bruni
Hi Rico, 2013/10/8 Rico Schüller : > Hi, > > this moves the object initialization into a separate function, so it could > be used for strings and resources. It also removes the STATE_TYPE as we > could distinguish the types at the object level. > > 1. When an object has a destination, it points to

Re: [PATCH] d3dx9: Move object initialization into a separate function.

2013-10-09 Thread Matteo Bruni
2013/10/9 Rico Schüller : > On 09.10.2013 01:12, Matteo Bruni wrote: >> >> Hi Rico, >> >> 2013/10/8 Rico Schüller : >>> >>> Hi, >>> >>> this moves the object initialization into a separate function, so it >>> could >

Re: dlls/d3dx9_36/bytecodewriter.c oddity

2010-08-18 Thread Matteo Bruni
2010/8/18 Gerald Pfeifer : > Metteo et al, > > I noticed d3dx9_36/bytecodewriter.c can be simplified as follows, but > somewhat tells me this may rather point out a problem somewhere in that > code, so I am not sending this to wine-patches. > > (The only functional difference should be the missing

Re: d3dx9: Fix D3DXPlaneNormalize on 64 bits.

2010-10-11 Thread Matteo Bruni
2010/10/11 Henri Verbeet : > On 8 October 2010 16:32, Matteo Bruni wrote: >> This patch changes D3DXPlaneNormalize to behave as native on 64 bits, >> returning infinity in the fourth plane component when the norm is 0. >> If this is not appropriate, I can resend witho

Re: About: d3dx9: Store transform matrix per-sprite.

2010-10-19 Thread Matteo Bruni
2010/10/19 Joris Huizer : > Hello, > > In this patch ID3DXSpriteImpl_Flush is adapted; the new loop being like: > >    int i, count, start; >    /*  ... */ >    for(start=0;startsprite_count;start+=count,count=0) { >        i=start; >        while(isprite_count && >              (count==0 || > Thi

Re: cmd: Fix Italian translation

2010-11-21 Thread Matteo Bruni
> -L'etichetta che è l'obiettivo di un GOTO può essere lunga fino a 255 > caratteri\n\ > +L'etichetta che è la destinazione di un GOTO può essere lunga fino a 255 > caratteri\n\ I believe this sentence as a whole sounds quite awkward. Maybe something like "Un'etichetta che sia destinazione di un

Re: wined3d: don't set cube and volume POW2 caps if np2 textures are supported

2010-11-23 Thread Matteo Bruni
2010/11/23 Stefan Dösinger : > Am Dienstag 23 November 2010, 16:52:09 schrieb Henri Verbeet: >> Looks like a flaw in the d3dx9_36 test, it isn't taking the POW2 cap >> into account. I would have expected that to fail the other way around >> though, cards that can't do npot textures should be pretty

Re: JanitorialProjects/ReplaceMalloc: remove malloc and free from dlls folder

2010-12-31 Thread Matteo Bruni
2010/12/30 Dan Kegel : > Yegor wrote: >> it's my first contribution to wine... > > Welcome! > >> so I wanted to start with some simple task. > > Changing memory allocation might not be simple. > > Your patch touches two different DLLs. > You should probably split this patch up, one patch per dll. >

Re: [PATCH 4/5] d3dx9_36: Implemented ID3DXConstantTable_SetMatrix and ID3DXConstantTable_SetMatrixArray

2011-01-20 Thread Matteo Bruni
2011/1/20 Travis Athougies : > +            /* D3DXMATRIX is a union, one of whose elements is an array, so > it can be cast to a float pointer */ > +           if (is_vertex_shader(This->desc.Version)) > +               IDirect3DDevice9_SetVertexShaderConstantF(device, > desc.RegisterIndex + i,

Re: [PATCH 5/5] d3dx9_36/tests: Added tests for ID3DXConstantTable_Set* functions

2011-01-20 Thread Matteo Bruni
2011/1/20 Travis Athougies : > +static void test_setting_basic_table(IDirect3DDevice9 *device) > +{ > +    static const D3DXMATRIX mvp = { > +        0.514f, 0.626f, 0.804f, 0.786f, > +        0.238f, 0.956f, 0.374f, 0.483f, > +        0.109f, 0.586f, 0.900f, 0.255f, > +        0.898f, 0.411f, 0.93

Re: [PATCH 4/5] d3dx9_36: Implemented ID3DXConstantTable_SetMatrix and ID3DXConstantTable_SetMatrixArray

2011-01-21 Thread Matteo Bruni
2011/1/21 Michael Stefaniuc : > On 01/21/2011 06:56 AM, Travis Athougies wrote: >> On Thu, Jan 20, 2011 at 7:27 AM, Matteo Bruni >> wrote: >>> >>> 2011/1/20 Travis Athougies: >>>> >>>> +/* D3DXMATRIX is a union, one of whos

Re: wined3d: Update clip planes when switching to/from offscreen rendering.

2011-01-31 Thread Matteo Bruni
2011/1/31 Stefan Dösinger : > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > Am 31.01.2011 um 15:57 schrieb Henri Verbeet: > >> On 31 January 2011 15:45, Stefan Dösinger wrote: >>> >>> If we change the shader code to write gl_ClipVertex and result.clip before >>> applying the y inversion t

Re: wined3d: Update clip planes when switching to/from offscreen rendering.

2011-02-02 Thread Matteo Bruni
2011/1/31 Stefan Dösinger : > Am 31.01.2011 um 17:08 schrieb Matteo Bruni: >> The attached patch should follow your idea, does it look right? FWIW, >> I can't see any 1-pixel offset in The Sims 3 with this patch. Yes, I >> know that's not how it should be tested...

Re: [PATCH 2/5] d3dx9_36: Implemented ID3DXConstantTable_SetIntArray and ID3DXConstantTable_SetInt

2011-02-08 Thread Matteo Bruni
> +       /* We need the for loop, since we need to convert the integer to a > float */ > +        for (i = 0; i < count && i < desc.RegisterCount; i++) > +        { > +            row[0] = (float)n[i]; The cast is unneeded, and the comment above is too.

Re: [PATCH 3/5] d3dx9_36: Implemented ID3DXConstantTable_SetVector and ID3DXConstantTable_SetVectorArray

2011-02-08 Thread Matteo Bruni
> +            if (is_vertex_shader(This->desc.Version)) > +                IDirect3DDevice9_SetVertexShaderConstantF(device, > desc.RegisterIndex + i, (float *)fvector, > +                        desc.RegisterCount); You should probably just use 1 instead of desc.RegisterCount in SetVertexShader

Re: d3dx9_36: make sure return values are used (LLVM/Clang)

2011-02-09 Thread Matteo Bruni
hr = IDirect3DTexture9_GetLevelDesc(texture, 0, &desc); +ok(hr == D3D_OK, "D3DXCreateTexture returned %#x, expected %#x\n", hr, D3D_OK); Copy-paste error, it should be GetLevelDesc in the ok() message. :)

Re: [PATCH 2/5] d3dx9_36: Implemented ID3DXConstantTable_SetIntArray and ID3DXConstantTable_SetInt

2011-02-09 Thread Matteo Bruni
2011/2/9 Travis Athougies : > > On Feb 8, 2011, at 4:10 AM, Matteo Bruni wrote: > >>> +       /* We need the for loop, since we need to convert the integer to >>> a float */ >>> +        for (i = 0; i < count && i < desc.RegisterCount; i++) &

Re: Re: [PATCH] Implement software DXT1 compression

2011-02-14 Thread Matteo Bruni
2011/2/14 : > Hi Stefan, thanks for your answer. I've checked the nvidia texture tools > but, sadly, I think it's impossible to use them in wine: while they have c > bindings, those bindings lack the essential function > nvttSetOutputOptionsOutputHandler(NvttOutputOptions * outputOptions, > nvttOu

Re: Somewhat barebones patch to implement D3DXCreateRenderToSurface for bug 24899, how much more needs to be implemented?

2011-02-17 Thread Matteo Bruni
2011/2/16 Misha Koshelev : > Dear All: > > Looking at d3dx9 bugs, bug 24899 requires D3DXCreateRenderToSurface. > > This, somewhat barebones, patch, implements core functionality of > D3DXCreateRenderToSurface, along with a barebones ID3DXRenderToSurface > implementation. > > I was wondering, in or

Re: d3dcompiler_43: Add missing break (Coverity)

2011-02-23 Thread Matteo Bruni
2011/2/23 Amine Khaldi : > CID 1585. > > Regards, > Amine. > This doesn't seem to be the correct fix. With that break you aren't going to return any string and that will cause problems thereafter. You should replace the "case 2:" with "default:" instead (like BWRITERSPR_RASTOUT some rows above).

Re: d3dxcreatebox patch

2011-03-09 Thread Matteo Bruni
2011/3/9 David Adam : > Hello, > > is there any problem with my d3dxcreatebox patch? > > Thanks in advance for any feedback. > > A+ > > David > Do you refer to http://source.winehq.org/patches/data/71983 ? I just had a cursory look at it: I presume there isn't anything fundamentally broken with yo

Re: d3dxcreatebox patch

2011-03-09 Thread Matteo Bruni
rdering of the vertices for D3DXCreateBox. Did I miss > anything? > > A+ > > David > > 2011/3/9 Matteo Bruni >> >> 2011/3/9 David Adam : >> > Hello, >> > >> > is there any problem with my d3dxcreatebox patch? >> > >&

Re: d3dx9_36 [try 3]: Add a few tests for D3DXCreateBox

2011-03-16 Thread Matteo Bruni
Most of the objections from the previous try still stand: check your whitespaces (whitespace after every comma, whitespaces around operators, whitespace after "if" or "for" keywords), you have to be consistent. Comparing indices doesn't make much sense now that you don't check vertices, I think you

Re: [2/3] winex11.drv: Don't modify current state if glXMakeCurrent fails.

2011-03-29 Thread Matteo Bruni
, but in general, failing on a destroyed drawable was the only consistent "edge case" behavior I found. > > On Tue, Mar 29, 2011 at 7:42 AM, Matteo Bruni > wrote: >> >> >> >> >> >

  1   2   >