Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | svga: indentation/formatting fixes | Brian Paul | 2011-09-23 | 1 | -16/+16 |
| | |||||
* | svga: remove emit_consts() offset parameter | Brian Paul | 2011-09-23 | 1 | -3/+7 |
| | | | | It was always zero. | ||||
* | svga: s/int/unsigned/ in svga_state_constants.c | Brian Paul | 2011-09-23 | 1 | -3/+7 |
| | | | | Be consistent with other functions in the file. And add some comments. | ||||
* | svga: s/unit/shader/ and related clean-ups | Brian Paul | 2011-09-23 | 1 | -19/+23 |
| | | | | 'shader' is more intuitive. Also s/int/unsigned/ and add assertions. | ||||
* | svga: clean up return values and error codes | Brian Paul | 2011-09-23 | 15 | -97/+92 |
| | | | | | | Previously we were using a hodge podge of int vs. pipe_enum and 0 vs. PIPE_OK. Some functions that always returned PIPE_OK were made void. | ||||
* | svga: add format translation for DXT/sRGB formats | Brian Paul | 2011-09-23 | 1 | -2/+8 |
| | | | | | Without this, apps/tests that tried to use a DXT/sRGB format would die on a failed assertion (st_texture.c:80). | ||||
* | svga: test register W component in emit_kil() | Brian Paul | 2011-09-23 | 1 | -16/+44 |
| | | | | | | Only the XYZ components are checked to be negative by SVGA3DOP_TEXKILL. GL_ARB_fp requires all four components be checked. Emit a second texkill for W if needed. | ||||
* | svga: fix depth/shadow compare for non-projected texcoords | Brian Paul | 2011-09-23 | 1 | -16/+24 |
| | | | | | | | We only need to do the divide by Q step for TXP instructions. This fixes the incorrectly rendered soft shadow test in Lightsmark. Along with the previous texture swizzle commit, this also fixes all the piglit glsl-fs-shadow2d-XX.shader_test failures. | ||||
* | svga: implement texture swizzling | Brian Paul | 2011-09-23 | 4 | -9/+128 |
| | | | | | | | This exposes the GL_EXT_texture_swizzle extension and allows the various depth texture modes to be implemented properly. This, plus a follow-on texture/shadow change fixes quite a few piglit GLSL shadow sampler test failures. | ||||
* | svga: check that we don't exceed input/ouput register limits | Brian Paul | 2011-09-23 | 3 | -2/+13 |
| | |||||
* | svga: implement point sprite suppport | Brian Paul | 2011-09-23 | 8 | -4/+119 |
| | | | | | | Emit the SVGA3D_RS_POINTSPRITEENABLE render state. When sprite_coord_mode=PIPE_SPRITE_COORD_LOWER_LEFT emit extra frag shader code to invert the Y coordinate of the incoming texcoord. | ||||
* | svga: add translation for float formats | Brian Paul | 2011-09-23 | 1 | -0/+14 |
| | |||||
* | svga: check to avoid writing beyond end of constant buffer | Brian Paul | 2011-09-23 | 1 | -1/+23 |
| | | | | See bug 688394 | ||||
* | svga: Cleanup format capability checking. | José Fonseca | 2011-09-23 | 8 | -192/+683 |
| | | | | | | Accurately describe what operations are supported when a format caps entry is not advertised by the host, and which formats are never supported, instead of making ad-hoc and often incorrect assumptions. | ||||
* | svga: Don't use the new depth formats for surfaces that will never be ↵ | José Fonseca | 2011-09-23 | 5 | -17/+23 |
| | | | | | | | sampled from. Mitigates issues with hosts where support for these new depth formats is flaky. | ||||
* | svga: Share one texcoord between depth and fog | Jakob Bornecrantz | 2011-09-23 | 3 | -13/+86 |
| | |||||
* | svga: Only emit Z depth work if it is actually read | Jakob Bornecrantz | 2011-09-23 | 2 | -15/+21 |
| | |||||
* | svga: Fix vPos usage | Jakob Bornecrantz | 2011-09-23 | 1 | -1/+7 |
| | |||||
* | svga: Wip for passing depth in a texcoord | Jakob Bornecrantz | 2011-09-23 | 3 | -13/+86 |
| | | | | TODO: Can we pass this as the same texcoord as fog? | ||||
* | svga: Add a comment about depth format selection. | José Fonseca | 2011-09-23 | 1 | -1/+10 |
| | |||||
* | svga: Consider the new depth formats in svga_texture_from_handle(). | José Fonseca | 2011-09-23 | 1 | -1/+2 |
| | |||||
* | svgadump: Dump the new depth format names. | José Fonseca | 2011-09-23 | 1 | -0/+9 |
| | |||||
* | svga: Expose the new depth formats | Jakob Bornecrantz | 2011-09-23 | 6 | -25/+65 |
| | |||||
* | svga: Coalesce multiple shader constants in a single command. | José Fonseca | 2011-09-23 | 3 | -4/+178 |
| | | | | | | HWv8 feature. Tested with GoogleEarth, Mesa demos. | ||||
* | svgadump: Update for svga3d_reg.h header changes. | José Fonseca | 2011-09-23 | 1 | -33/+60 |
| | |||||
* | svga: updated svga3d_reg.h to latest public version | Brian Paul | 2011-09-23 | 1 | -49/+144 |
| | |||||
* | Allow RBUG to start blocked | Alex Corscadden | 2011-09-23 | 1 | -0/+4 |
| | | | | | | | | | It is sometimes useful to examine the first frame or and early frame of a quickly executing and non-repeating application, this chain introduces a new environment variable that is checked when creating contexts. If GALLIUM_RBUG_START_BLOCKED is set, then each context that is created is started in a blocked state. This allows time to connect rbug before anything is rendered in the context. | ||||
* | draw/llvm: add additional null pointer checkin ↵ | Brian Paul | 2011-09-23 | 1 | -1/+1 |
| | | | | draw_pt_fetch_pipeline_or_emit_llvm() | ||||
* | i915g: Don't generate useless swizzles before texture accesses. | Stéphane Marchesin | 2011-09-22 | 3 | -10/+62 |
| | | | | That helps reduce the number of texture indirections, which are very limited on i915. | ||||
* | i915g: Fix whitespace. | Stéphane Marchesin | 2011-09-22 | 1 | -13/+13 |
| | |||||
* | i915g: Fix peephole optimization for MOVs. | Stéphane Marchesin | 2011-09-22 | 1 | -0/+8 |
| | |||||
* | i915g: Add unsupported PIPE_CAP_MIN_TEXEL_OFFSET/PIPE_CAP_MAX_TEXEL_OFFSET. | Stéphane Marchesin | 2011-09-22 | 1 | -0/+3 |
| | |||||
* | d3d1x: setup draw info primitive restart parameters | Christoph Bumiller | 2011-09-22 | 1 | -3/+22 |
| | |||||
* | draw: add support for guard-band clipping | Brian Paul | 2011-09-22 | 9 | -7/+51 |
| | |||||
* | draw: Reduce the number of vertex shader variants per context to 128. | José Fonseca | 2011-09-22 | 1 | -1/+1 |
| | |||||
* | draw: Respect max_indices from the renderer. | Kurt Daverman | 2011-09-22 | 1 | -1/+1 |
| | |||||
* | translate: check for PIPE_SUBSYSTEM_EMBEDDED | Brian Paul | 2011-09-22 | 1 | -1/+1 |
| | |||||
* | tgsi: Check in scan for fs position and depth reads | Jakob Bornecrantz | 2011-09-22 | 2 | -0/+17 |
| | |||||
* | svga: skip assertion when index_bias < 0 | Brian Paul | 2011-09-22 | 1 | -1/+1 |
| | | | | See bug 688383 | ||||
* | svga: fix the test for sRGB texture formats | Brian Paul | 2011-09-22 | 1 | -1/+2 |
| | | | | | | | | | | The pipe_sampler_view::format field should be prefered over the resource/ texture format. The former is used to override the texture format for sRGB decode enable/disable, etc. Also, use new util_format_is_srgb() helper to catch all sRGB formats. This fixes the piglit tex-srgb test for GL_EXT_texture_sRGB_decode. | ||||
* | gallium/util: add util_format_is_srgb() helper | Brian Paul | 2011-09-22 | 1 | -0/+7 |
| | |||||
* | util: add u_bit_scan helper | Keith Whitwell | 2011-09-22 | 2 | -7/+16 |
| | |||||
* | util: Allow to make the depth/stencil format queries without repeatedly ↵ | José Fonseca | 2011-09-22 | 1 | -9/+20 |
| | | | | | | | looking up the format description. All functions here should take struct util_format_description * IMO, to incentive efficient code. | ||||
* | util: single call to util_format_description in fill_rect | Keith Whitwell | 2011-09-22 | 1 | -3/+4 |
| | |||||
* | util: Handle conversion between depth stencil formats. | José Fonseca | 2011-09-22 | 1 | -0/+44 |
| | |||||
* | i915g: Add an optimization to get rid of useless movs, in particular at the ↵ | Stéphane Marchesin | 2011-09-21 | 1 | -3/+38 |
| | | | | end of some shaders. | ||||
* | i915g: Fix some whitespace problems. | Stéphane Marchesin | 2011-09-21 | 2 | -12/+12 |
| | |||||
* | i915g: Blend equation separate seems to work. | Stéphane Marchesin | 2011-09-21 | 1 | -6/+1 |
| | |||||
* | i915g: Add ifdef'd out code to dump compiled shaders. | Stéphane Marchesin | 2011-09-21 | 1 | -0/+4 |
| | |||||
* | i915g: Fix bug in shader optimizer. | Stéphane Marchesin | 2011-09-21 | 1 | -2/+2 |
| |