Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | swrast: asst. clean-ups in texcombine code | Brian Paul | 2009-04-06 | 1 | -26/+19 |
| | |||||
* | swrast: fix secondary color add for glBitmap | Brian Paul | 2009-04-06 | 3 | -11/+30 |
| | | | | | Also, clean up the logic involved in choosing per-vertex vs. per-fragment primary+secondary color addition. | ||||
* | swrast: fix incorrect arithmetic for GL_ADD_SIGNED/GL_COMBINE4_NV mode | Brian Paul | 2009-04-06 | 1 | -6/+6 |
| | |||||
* | st: as with swrast, interpret texture border color according to texture format | Brian Paul | 2009-04-06 | 1 | -4/+37 |
| | | | | | Depending on the hardware driver this might not be needed, but it will cause no harm. | ||||
* | st: rename a helper function | Brian Paul | 2009-04-06 | 1 | -4/+4 |
| | |||||
* | swrast: fix texture border color interpretation | Brian Paul | 2009-04-06 | 1 | -30/+68 |
| | | | | | | | The texture border color must be interpreted according to the texture's base format. For example, for a GL_ALPHA texture, sampling the border color should return (0,0,0,borderAlpha). This wasn't an issue here until I removed the legacy texenv code (we always use the combiner path now). | ||||
* | mesa: Fix orientation adjustment for reading stencil pixels. | José Fonseca | 2009-04-06 | 1 | -1/+1 |
| | | | | Fixes conform spcorner.c & spclear.c failure. | ||||
* | intel: Avoid dri2 GetBuffers round-trips for internal Viewport calls. | Eric Anholt | 2009-04-06 | 3 | -3/+10 |
| | | | | | | This gets us the savings for driver-internal viewport calls that dd1c68f15123a889a3ce9d2afe724e272d163e32 was attempting, without relying on Xlib internals or clients handling X events. | ||||
* | i965: Use GTT maps when available to upload vertex arrays and system VBOs. | Eric Anholt | 2009-04-06 | 3 | -18/+55 |
| | | | | | | | This speeds up OA on my GM45 by 21% (more than the original CPU cost of the upload path). We might still be able to squeeze a few more percent out by avoiding repeatedly mapping/unmapping buffers as we upload elements into them. | ||||
* | intel: Clean up some a leftover from sedding of bufmgr context->screen move. | Eric Anholt | 2009-04-06 | 1 | -3/+0 |
| | |||||
* | radeon: Expose a 32 bit RGBA fbconfig even when the screen depth is 16. | Michel Dänzer | 2009-04-06 | 1 | -15/+20 |
| | | | | | | | Otherwise current xserver / libGL no longer expose a 32 bit RGBA GLX visual, and compiz fails. Fixes http://bugs.freedesktop.org/show_bug.cgi?id=20479 . | ||||
* | gallium: Clean up driver clear() interface. | Michel Dänzer | 2009-04-04 | 1 | -119/+64 |
| | | | | | Only allows clearing currently bound buffers, but colour and depth/stencil in a single call. | ||||
* | gallium: Add utility helper for packing combined depth/stencil values. | Michel Dänzer | 2009-04-04 | 1 | -13/+3 |
| | |||||
* | intel: #include texgetimage.h | Brian Paul | 2009-04-03 | 1 | -0/+1 |
| | |||||
* | mesa: move glGetTexImage(), glGetCompresssedTexImage() code into new file | Brian Paul | 2009-04-03 | 9 | -335/+409 |
| | |||||
* | mesa: remove the noClamp parameter to _mesa_pack_rgba_span_float() | Brian Paul | 2009-04-03 | 8 | -15/+18 |
| | | | | | It was only set to GL_TRUE in one place where it isn't really needed (glGetTexImage(sRGB format)). | ||||
* | mesa: clamp colors to [0,1] for glGetTexImage() when format is GL_LUMINANCE | Brian Paul | 2009-04-03 | 1 | -4/+6 |
| | | | | For luminance, we add R+G+B and it seems we should always clamp in case. | ||||
* | mesa: whitespace and comment clean-up | Brian Paul | 2009-04-03 | 1 | -11/+16 |
| | |||||
* | mesa: remove extra semicolons | Brian Paul | 2009-04-03 | 1 | -5/+5 |
| | |||||
* | mesa: in mesa_add_named_constant(), avoid adding duplicate constants | Brian Paul | 2009-04-03 | 1 | -7/+12 |
| | |||||
* | mesa: fix parameter counting in ARB vertex/fragment program parsing | Brian Paul | 2009-04-03 | 1 | -5/+2 |
| | | | | Duplicated unnamed constants were getting counted more than once. | ||||
* | mesa: replace >= with > when testing if we've exceeded max local params | Brian Paul | 2009-04-03 | 1 | -2/+2 |
| | | | | Now a program that uses 256 locals works as it should. | ||||
* | mesa: only clear matrix MAT_DIRTY_INVERSE flag when we actually compute the ↵ | Brian Paul | 2009-04-03 | 1 | -3/+2 |
| | | | | | | | | inverse If _math_matrix_analyse() got called before we allocated the inverse matrix array we could lose the flag indicating that we needed to compute the inverse. This could happen with certain vertex shader cases. | ||||
* | mesa: for OPCODE_LIT, use _mesa_pow() instead of exp() and log() | Brian Paul | 2009-04-03 | 1 | -2/+2 |
| | | | | Also, s/pow/_mesa_pow/ | ||||
* | mesa: rename some gl_light fields to be clearer | Brian Paul | 2009-04-03 | 10 | -36/+36 |
| | | | | | EyeDirection -> SpotDirection _NormDirection -> _NormSpotDirection | ||||
* | mesa: don't normalize spot light direction until validation time | Brian Paul | 2009-04-03 | 1 | -2/+7 |
| | | | | | In glLight() we're only supposed to transform the direction by the modelview matrix, not normalized it too. | ||||
* | i965: remove unused var | Brian Paul | 2009-04-03 | 1 | -1/+0 |
| | |||||
* | mesa: replace assertion with conditional in _mesa_opcode_string() | Brian Paul | 2009-04-03 | 1 | -2/+4 |
| | |||||
* | i965: more const buffer debug code | Brian Paul | 2009-04-03 | 1 | -50/+84 |
| | |||||
* | i965: added brw_same_reg() | Brian Paul | 2009-04-03 | 1 | -0/+7 |
| | |||||
* | i965: s/GL_FALSE/BRW_COMPRESSION_NONE/ | Brian Paul | 2009-04-03 | 1 | -1/+1 |
| | |||||
* | i965: another checkpoint commit of new constant buffer support | Brian Paul | 2009-04-03 | 2 | -65/+115 |
| | | | | | Everything is in place now for using a true constant buffer for GLSL fragment shaders. Still some bugs to find though. | ||||
* | i965: fix response length param in brw_dp_READ_4() | Brian Paul | 2009-04-03 | 1 | -1/+1 |
| | | | | We were accidentally clobbering the next register. | ||||
* | i965: change args to get_src_reg() to prep for new constant buffer support | Brian Paul | 2009-04-03 | 1 | -79/+85 |
| | |||||
* | i965: check-point commit of new constant buffer support | Brian Paul | 2009-04-03 | 5 | -35/+288 |
| | | | | | | | | | | | | | | | | Currently, shader constants are stored in the GRF (loaded from the CURBE prior to shader execution). This severly limits the number of constants and temps that we can support. This new code will support (practically) unlimited size constant buffers and free up registers in the GRF. We allocate a new buffer object for the constants and read them with "Read" messages/instructions. When only a small number of constants are used, we can still use the old method. The code works for fragment shaders only (and is actually disabled) for now. Need to do the same thing for vertex shaders and need to add the necessary code-gen to fetch the constants which are referenced by the shader instructions. | ||||
* | i965: remove unused code for sampling a constant buffer | Brian Paul | 2009-04-03 | 1 | -42/+0 |
| | |||||
* | i965: code to setup a constant buffer sampler | Brian Paul | 2009-04-03 | 1 | -0/+43 |
| | | | | | This code won't actually be used and will be removed in a subsequent commit. Just committing for posterity. | ||||
* | i965: do negation and Abs in get_src_reg_imm() | Brian Paul | 2009-04-03 | 1 | -1/+6 |
| | | | | Fixes regression seen with progs/glsl/bump.c | ||||
* | i965: comments | Brian Paul | 2009-04-03 | 1 | -0/+5 |
| | |||||
* | i965: code to debug/dump instruction immediates | Brian Paul | 2009-04-03 | 1 | -0/+5 |
| | |||||
* | i965: minor code movement, new comment | Brian Paul | 2009-04-03 | 1 | -1/+4 |
| | |||||
* | i965: added new brw_dp_READ_4() function | Brian Paul | 2009-04-03 | 2 | -0/+57 |
| | | | | Used to read float[4] vectors from the constant buffer/surface. | ||||
* | i965: new and updated comments | Brian Paul | 2009-04-03 | 1 | -17/+29 |
| | |||||
* | mesa: more error message info | Brian Paul | 2009-04-03 | 1 | -1/+2 |
| | |||||
* | mesa: clean up formatting and use 'return' instead of 'break' consistantly | Brian Paul | 2009-04-03 | 1 | -51/+67 |
| | |||||
* | i965: comments for brw_SAMPLE() | Brian Paul | 2009-04-03 | 1 | -1/+5 |
| | |||||
* | i965: comments for sampling code | Brian Paul | 2009-04-03 | 1 | -28/+28 |
| | |||||
* | i965: add support for float literal instruction operands | Brian Paul | 2009-04-03 | 1 | -20/+43 |
| | | | | | Call the get_src_reg_imm() function when it's permissible to generate a literal value src register. | ||||
* | i965: remove 'nr' param from get_src/dst_reg() functions | Brian Paul | 2009-04-03 | 1 | -112/+114 |
| | | | | The value was always 1. | ||||
* | i965: fix comment typo | Brian Paul | 2009-04-03 | 1 | -1/+1 |
| |