summaryrefslogtreecommitdiff
path: root/src/mesa
AgeCommit message (Collapse)Author
2010-12-06st/mesa: Unbind all constant buffersJakob Bornecrantz
2010-12-06mesa: Bump the number of bits in the register index.José Fonseca
More than 1023 temporaries were being used for a Cinebench shader before doing temporary optimization, causing the index value to wrap around to -1024.
2010-12-06st/mesa: fix mipmap generation bugBrian Paul
In st_finalize_texture() we were looking at the st_texture_object:: lastLevel field instead of the pipe_resource::last_level field to determine which resource to store the mipmap in. Then, in st_generate_mipmap() we need to call st_finalize_texture() to make sure the destination resource is properly allocated. These changes fix the broken piglit fbo-generatemipmap-formats test.
2010-12-06mesa: add error margin to clip mask debug/check codeBrian Paul
When X or Y or Z is close to W the outcome of the floating point clip test comparision may be different between the C and x86 asm paths. That's OK; don't report an error. See fd.o bug 32093
2010-12-06i965: Remove INTEL_DEBUG=glsl_force now that there's no brw_wm_glsl.cEric Anholt
2010-12-06i965: Nuke brw_wm_glsl.c.Eric Anholt
It was only used for gen6 fragment programs (not GLSL shaders) at this point, and it was clearly unsuited to the task -- missing opcodes, corrupted texturing, and assertion failures hit various applications of all sorts. It was easier to patch up the non-glsl for remaining gen6 changes than to make brw_wm_glsl.c complete. Bug #30530
2010-12-06i965: Add support for the instruction compression bits on gen6.Eric Anholt
Since the 8-wide first-quarter and 16-wide first-half have the same bit encoding, we now need to track "do you want instruction compression" in the compile state.
2010-12-06i965: Align gen6 push constant size to dispatch width.Eric Anholt
The FS backend is fine with register level granularity. But for the brw_wm_emit.c backend, it expects pairs of regs to be used for the constants, because the whole world is pairs of regs. If an odd number got used, we went looking for interpolation in the wrong place.
2010-12-06i965: Make the sampler's implied move on gen6 be a raw move.Eric Anholt
We were accidentally doing a float-to-uint conversion.
2010-12-06i965: Fix up gen6 samplers for their usage by brw_wm_emit.cEric Anholt
We were trying to do the implied move even when we'd already manually moved the real header in place.
2010-12-06i965: Fix gen6 interpolation setup for 16-wide.Eric Anholt
In the SF and brw_fs.cpp fixes to set up interpolation sanely on gen6, the setup for 16-wide interpolation was left behind. This brings relative sanity to that path too.
2010-12-06i965: Don't smash a group of coordinates doing gen6 16-wide sampler headers.Eric Anholt
2010-12-06i965: Fix up 16-wide gen6 FB writes after various refactoring.Eric Anholt
2010-12-06i965: Provide delta_xy reg to gen6 non-GLSL path PINTERP.Eric Anholt
Fixes many assertion failures in that path.
2010-12-06i965: Move payload reg setup to compile, not lookup time.Eric Anholt
Payload reg setup on gen6 depends more on the dispatch width as well as the uses_depth, computes_depth, and other flags. That's something we want to decide at compile time, not at cache lookup. As a bonus, the fragment shader program cache lookup should be cheaper now that there's less to compute for the hash key.
2010-12-06i965: Fix GS state uploading on SandybridgeZhenyu Wang
Need to check the required primitive type for GS on Sandybridge, and when GS is disabled, the new state has to be issued too, instead of only updating URB state with no GS entry, that caused hang on Sandybridge. This fixes hang issue during conformance suite testing.
2010-12-06i965: fix for flat shading on SandybridgeXiang, Haihao
use constant interpolation instead of linear interpolation for attributes COL0,COL1 if GL_FLAT is used. This fixes mesa demo bounce.
2010-12-05st/mesa: initialize key in st_vp_varientMarek Olšák
This fixes endless vertex shader recompilations in find_translated_vp if the shader contains an edge flag output. NOTE: This is a candidate for the 7.9 branch. Signed-off-by Brian Paul <brianp@vmware.com>
2010-12-04i965: Fix compile warning about missing opcodes.Eric Anholt
2010-12-04i965: Update gen6 SF state on fragment program change too.Eric Anholt
SF state depends on what inputs there are to the fragment program, not just the outputs of the VS.
2010-12-04i965: Update gen6 WM state on compiled program change, not just FP change.Eric Anholt
2010-12-04intel: Add an env var override to execute for a different GPU revision.Eric Anholt
Sometimes I'm on the train and want to just read what's generated under INTEL_DEBUG=vs,wm for some code on another generation. Or, for the next gen enablement we'll want to dump aub files before we have the actual hardware. This will let us do that.
2010-12-04mesa: Clean up header file inclusion in texobj.h.Vinson Lee
2010-12-04mesa: Clean up header file inclusion in texgetimage.h.Vinson Lee
2010-12-04mesa: Clean up header file inclusion in texformat.h.Vinson Lee
2010-12-04mesa: Clean up header file inclusion in texenvprogram.h.Vinson Lee
2010-12-04mesa: Clean up header file inclusion in texcompress_s3tc.h.Vinson Lee
2010-12-04mesa: Clean up header file inclusion in texcompress.h.Vinson Lee
2010-12-03st/mesa: new comment about updating state varsBrian Paul
2010-12-03mesa: update comments, remove dead codeBrian Paul
2010-12-03mesa: remove unneeded castBrian Paul
2010-12-03mesa: make glGet*(GL_NONE) generate GL_INVALID_ENUMBrian Paul
In find_value() check if we've hit the 0th/invalid entry before checking if the pname matches. Fixes http://bugs.freedesktop.org/show_bug.cgi?id=31987 NOTE: This is a candidate for the 7.9 branch.
2010-12-03swrast: restructure some glReadPixels() codeBrian Paul
2010-12-03swrast: accept GL_RG in glReadPixels()Brian Paul
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=32088
2010-12-03swrast: fix indentationBrian Paul
2010-12-03swrast: allow GL_RG format in glDrawPixels()Brian Paul
Restructure the switch statement to avoid having to add additional color formats in the future. Fixes http://bugs.freedesktop.org/show_bug.cgi?id=32086
2010-12-03mesa: return GL_FRAMEBUFFER_DEFAULT as FBO attachment typeBrian Paul
If querying the default/window-system FBO's attachment type, return GL_FRAMEBUFFER_DEFAULT (per the GL_ARB_framebuffer_object spec). See http://bugs.freedesktop.org/show_bug.cgi?id=31947 NOTE: This is a candidate for the 7.9 branch.
2010-12-03mesa: fix GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME queryBrian Paul
Return 0 instead of generating an error. See http://bugs.freedesktop.org/show_bug.cgi?id=30993 Note that piglit fbo-getframebufferattachmentparameter-01 still does not pass. But Mesa behaves the same as the NVIDIA driver in this case. Perhaps the test is incorrect. NOTE: This is a candidate for the 7.9 branch.
2010-12-03mesa, st/mesa: fix gl_FragCoord with FBOs in GalliumMarek Olšák
gl_FragCoord.y needs to be flipped upside down if a FBO is bound. This fixes: - piglit/fbo-fragcoord - https://bugs.freedesktop.org/show_bug.cgi?id=29420 Here I add a new program state STATE_FB_WPOS_Y_TRANSFORM, which is set based on whether a FBO is bound. The state contains a pair of transformations. It can be either (XY=identity, ZW=transformY) if a FBO is bound, or (XY=transformY, ZW=identity) otherwise, where identity = (1, 0), transformY = (-1, height-1). A classic driver (or st/mesa) may, based on some other state, choose whether to use XY or ZW, thus negate the conditional "if (is a FBO bound) ...". The reason for this is that a Gallium driver is allowed to only support WPOS relative to either the lower left or the upper left corner, so we must flip the Y axis accordingly again. (the "invert" parameter in emit_wpos_inversion) NOTE: This is a candidate for the 7.9 branch. Signed-off-by: Marek Olšák <maraeo@gmail.com> Signed-off-by: Brian Paul <brianp@vmware.com>
2010-12-02mesa: replace more MAX_WIDTH stack allocations with heap allocationsBrian Paul
2010-12-02st/mesa: avoid large stack allocations in readpixels codeBrian Paul
2010-12-02swrast: avoid large stack allocations in tex combine codeBrian Paul
2010-12-02swrast: avoid large stack allocations in blend codeBrian Paul
2010-12-02mesa: replace large/MAX_WIDTH stack allocations with heap allocationsBrian Paul
2010-12-02mesa: replace large/MAX_WIDTH stack allocations with heap allocationsBrian Paul
2010-12-02r600c: bump texture limits to hw limitsAlex Deucher
2010-12-02mesa: Temporary hack to prevent stack overflow on windowsJosé Fonseca
e.g. st_readpixels is trying to alloca() an huge ammount of memory from the stack.
2010-12-02mesa: Add getters for ARB_copy_buffer's attachment points.Eric Anholt
Fixes more complaints by oglconform.
2010-12-02mesa: Add getters for the rest of the supported draw buffers.Eric Anholt
MAX_DRAW_BUFFERS is 8, so allow all 8 GL_DRAW_BUFFER# to be retrieved. Fixes complaints by oglconform.
2010-12-02WIN32_THREADS -> WIN32José Fonseca
Fixes nasty bug where some parts of the code didn't define WIN32_THREADS and were using the integer mutex implementation, causing even confusion to the debuggers. And there is little interest of other thread implemenation on Win32 besides Win32 threads.