[Mesa-dev] [Bug 27896] New: gallium/{llvm, soft}pipe: should set MaxNativeParameters to nonzero

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Apr 29 07:54:41 PDT 2010


https://bugs.freedesktop.org/show_bug.cgi?id=27896

           Summary: gallium/{llvm,soft}pipe: should set
                    MaxNativeParameters to nonzero
           Product: Mesa
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Other
        AssignedTo: mesa-dev at lists.freedesktop.org
        ReportedBy: edwintorok at gmail.com


WoW crashes when runder under wine+d3d if MaxNativeParameters is zero (the
default). It crashes on swrastc, softpipe, and llvmpipe.

This patch works around the crash, but it changes the default parameter for all
drivers:
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 1707e22..d8c5dba 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -477,7 +477,7 @@ init_program_limits(GLenum type, struct
gl_program_constants *prog)
    prog->MaxNativeAttribs = 0;
    prog->MaxNativeTemps = 0;
    prog->MaxNativeAddressRegs = 0;
- prog->MaxNativeParameters = 0;
+ prog->MaxNativeParameters = 256;
 }

There should be a way to set these limits in gallium/llvmpipe, and the other
software drivers that support shaders.

P.S.: I think bugzilla needs a Drivers/Gallium/llvmpipe component.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the mesa-dev mailing list