summaryrefslogtreecommitdiffstats
path: root/src/mesa
Commit message (Collapse)AuthorAgeFilesLines
* r300/compiler: remove an unused-but-set variable and simplify the codeMarek Olšák2011-07-151-9/+6
|
* r300/compiler: fix a warning that a variable may be uninitializedMarek Olšák2011-07-151-1/+1
|
* st/mesa: remove unused-but-set variables in st_program.cMarek Olšák2011-07-151-33/+31
|
* swrast: remove an unused-but-set variableMarek Olšák2011-07-151-11/+0
|
* mesa: fix unused-but-set-variable warnings in dlist.cMarek Olšák2011-07-151-6/+6
|
* r600c/g: add new NI pci idsAlex Deucher2011-07-151-0/+2
| | | | Signed-off-by: Alex Deucher <[email protected]>
* vbo: minor optimisation in vbo_exec_DrawRangeElementsDave Airlie2011-07-141-3/+3
| | | | | | | | this moves getting the context into the debug in this function, just spotted it trawling callgrind traces for other things. Signed-off-by: Dave Airlie <[email protected]>
* mesa: use inline function wrapper for _mesa_reference_texobj()Brian Paul2011-07-142-7/+15
|
* mesa: use inline function wrapper for _mesa_reference_renderbuffer()Brian Paul2011-07-142-9/+14
|
* mesa: use inline function wrapper for _mesa_reference_framebuffer()Brian Paul2011-07-142-9/+13
|
* main: use inline function wrapper for _mesa_reference_buffer_object()Brian Paul2011-07-142-7/+16
|
* mesa: split _mesa_reference_program() into hot/cold paths.Dave Airlie2011-07-142-7/+18
| | | | | | | | | | | | | inline the hotpath of the reference remaining the same. This shouldn't penalise the slow path at all but improve the hot path so we don't have to jump to the function. It also moves some assert checks under an #ifndef NDEBUG. Minor clean-ups added by Brian. Signed-off-by: Dave Airlie <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* Merge branch 'master' of ssh://git.freedesktop.org/git/mesa/mesaStéphane Marchesin2011-07-1369-607/+1555
|\
| * st/mesa: flush bitmap cache on query and conditional render boundariesVadim Girlin2011-07-132-0/+10
| | | | | | | | | | | | | | | | | | | | Bitmap caching shouldn't affect the results of the queries and conditional render. NOTE: This is a candidate for the 7.11 branch. Signed-off-by: Vadim Girlin <[email protected]> Signed-off-by: Brian Paul <[email protected]>
| * i915: Add support for gl_FragData[0] for output color.Eric Anholt2011-07-121-0/+1
| | | | | | | | | | | | | | | | | | We advertised ARB_draw_buffers, but either fell back to software when using this output, or assertion failed. Fixes glsl-fs-fragdata-1, and failures in some webgl conformance tests. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=39024 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=34906
| * i915: Fix NPOT compressed textures on 915.Eric Anholt2011-07-121-2/+2
| | | | | | | | | | | | | | | | | | We were failing at rounding, misplacing the non-baselevels. Fixes: 3DFX_texture_compression_FXT1/fbo-generate-mipmaps ARB_texture_compression/fbo-generate-mipmaps EXT_texture_compression_s3tc/fbo-generate-mipmaps Reviewed-by: Ian Romanick <[email protected]>
| * mesa: Fix assertion failure in X8_Z24/Z24_X8 texfetch.Eric Anholt2011-07-121-2/+4
| | | | | | | | Reviewed-by: Ian Romanick <[email protected]>
| * i915: Fix depth texturing since 86e62b2357447b7c97f434be4834f4b50aa0764dEric Anholt2011-07-121-0/+1
| | | | | | | | | | | | The 965 driver already had the X8_Z24 case, but 915 was missing it. Reviewed-by: Ian Romanick <[email protected]>
| * i915: Use _mesa_get_format_name to describe translate_tex_format() fail.Eric Anholt2011-07-122-2/+4
| | | | | | | | | | | | | | I don't want to go count up to what format number 29 is. Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
| * i915: Fix map/unmap mismatches from leaving INTEL_FALLBACK during TNL.Eric Anholt2011-07-122-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | The first rendering after context create didn't know of the color buffer yet, triggering a sw fallback. The intel_prepare_render() from intelSpanRenderStart then found the buffer and turned off fallbacks, but intelSpanRenderFinish was never called and things were left mapped. By checking buffers before making the call on whether to do the fallback pipeline or not, we avoid the fallback change inside of the rendering pipeline. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=31561 Reviewed-by: Ian Romanick <[email protected]>
| * intel: Use _mesa_tex_target_to_face() helper function instead of our own.Eric Anholt2011-07-121-22/+3
| | | | | | | | Reviewed-by: Ian Romanick <[email protected]>
| * st/mesa: check if _mesa_create_context() returns NULLEmil Velikov2011-07-121-0/+3
| | | | | | | | | | | | | | | | | | | | | | In some cases _mesa_create_context() can return NULL an in the mesa state tracker, we do not concider the case, which may cause issues within st_create_context_priv() This patch adds a simple check (similar to the one in the dri drivers) Signed-off-by: Emil Velikov <[email protected]> Signed-off-by: Brian Paul <[email protected]>
| * st/mesa: choose a matching depth internal format for DrawPixelsMarek Olšák2011-07-121-2/+27
| | | | | | | | | | | | | | This makes it easier to hit the fast path and get a float format when we ask for it. Reviewed-by: Brian Paul <[email protected]>
| * st/mesa: get rid of unnecessary 'goto' in DrawPixelsMarek Olšák2011-07-111-10/+6
| | | | | | | | Reviewed-by: Brian Paul <[email protected]>
| * st/mesa: derive a stencil sampler format from the actual texture formatMarek Olšák2011-07-111-44/+26
| | | | | | | | Reviewed-by: Brian Paul <[email protected]>
| * dri/nouveau: nv10: fix vertex format for GL_UNSIGNED_BYTEAndrew Randrianasulu2011-07-111-1/+1
| | | | | | | | | | | | | | | | Broken accidentally in f4efc256fd90beaff86321e4c6ce00f9be55092d, the switch to rnn headers. NV10TCL_VTXFMT_TYPE_BYTE_RGBA became U8_UNORM but B8G8R8A8_UNORM was used instead.
| * i965/gen7: Add support for gl_PointCoord.Kenneth Graunke2011-07-111-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is exactly analogous to Eric's Gen6 change in commit 6861a701772eac3a6a7d3136d03efa7ac7e5c026. His explanation: "This is just like PointSprite overrides, but it's always on for that attribute." Fixes glsl-fs-pointcoord and gtf/point_sprites. Signed-off-by: Eric Anholt <[email protected]> Signed-off-by: Kenneth Graunke <[email protected]> NOTE: This is a candidate for the 7.11 branch.
| * i965/gen7: Fix point sprite texture coordinate overrides.Kenneth Graunke2011-07-111-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is exactly analogous to Eric's Gen6 change in commit f304bb8a5d040d99db47a65813d216d11c66fb47. His explanation: "We were assuming that the input attribute n to the FS was FRAG_ATTRIB_TEXn, which happened to be true often enough for our testcases." Signed-off-by: Eric Anholt <[email protected]> Signed-off-by: Kenneth Graunke <[email protected]> NOTE: This is a candidate for the 7.11 branch.
| * i965/gen7: Refactor SF setup a bit to handle overrides in one place.Kenneth Graunke2011-07-111-19/+24
| | | | | | | | | | | | | | | | | | | | This is exactly analogous to Eric's Gen6 change in commit e7280b16d634e1f434bebbce83996b3d30d0419c. Signed-off-by: Eric Anholt <[email protected]> Signed-off-by: Kenneth Graunke <[email protected]> NOTE: This is a candidate for the 7.11 branch.
| * i965/gen4: Add a stub dumper for CC unit state, which is different from gen6.Eric Anholt2011-07-111-3/+20
| | | | | | | | Reviewed-by: Kenneth Graunke <[email protected]>
| * i965/gen4: Add state dumping for unit state using state_batch_list[].Eric Anholt2011-07-111-57/+112
| | | | | | | | | | | | | | This is just barely more pretty-printing than we previously had, but at least it doesn't leave out unit states in the log. Reviewed-by: Kenneth Graunke <[email protected]>
| * i965/gen6: Add state dumping for the VS constants.Eric Anholt2011-07-113-1/+22
| | | | | | | | | | | | | | | | This is quite a bit of spam, but I think it's useful to have in a full INTEL_DEBUG=batch dump. And a lot of this spam on glxgears is just because we're awful at handling our constants :/ Reviewed-by: Kenneth Graunke <[email protected]>
| * i965/gen6: Add state dumping for the scissor packet.Eric Anholt2011-07-111-0/+16
| | | | | | | | Reviewed-by: Kenneth Graunke <[email protected]>
| * i965: When dumping programs, dump the whole cache. But don't by default.Eric Anholt2011-07-111-23/+47
| | | | | | | | | | | | | | | | | | | | | | | | The previous brw_state_dump output was rather useless -- last used program per batch, and just the hex. Now we dump all programs (since we don't know which were used), and disassemble them. But that's a ton of spam, and usually when looking into program contents we use INTEL_DEBUG={vs,wm,misc,other} and when looking into state updates we use INTEL_DEBUG=batch, so this dump usually just massively clutters up the output. Reviewed-by: Kenneth Graunke <[email protected]>
| * i965: Dump the binding table using state_batch_list[].Eric Anholt2011-07-111-5/+19
| | | | | | | | Reviewed-by: Kenneth Graunke <[email protected]>
| * i965: Dump the surface, sampler, and sdc state using state_batch_list[].Eric Anholt2011-07-111-164/+105
| | | | | | | | | | | | | | Now, for example, INTEL_DEBUG=batch tex-border-1 shows all the texturing state involved. Reviewed-by: Kenneth Graunke <[email protected]>
| * i965: Dump brw_state_batch data in an easier format for cross-referencing.Eric Anholt2011-07-111-89/+79
| | | | | | | | | | | | | | | | | | Now that we're using state base addresses for most things, we're less interested in the absolute address of the state, and more in its offset from the state base address (start of batchbuffer). Also, reorder the printout so it looks more like the batchbuffer dump. Reviewed-by: Kenneth Graunke <[email protected]>
| * i965: Map the batch once for dumping all our state batch structs.Eric Anholt2011-07-111-25/+2
| | | | | | | | Reviewed-by: Kenneth Graunke <[email protected]>
| * i965: Move the new gen6 state structs to using state_batch_list[].Eric Anholt2011-07-111-22/+24
| | | | | | | | Reviewed-by: Kenneth Graunke <[email protected]>
| * i965: Move the SF VP state dump to using the state_batch_list[]Eric Anholt2011-07-111-11/+19
| | | | | | | | Reviewed-by: Kenneth Graunke <[email protected]>
| * i965: Move CLIP VP state dump to using the state_batch_list[].Eric Anholt2011-07-111-5/+21
| | | | | | | | Reviewed-by: Kenneth Graunke <[email protected]>
| * i965: Track the brw_state_batch() data while under INTEL_DEBUG=batch.Eric Anholt2011-07-113-0/+36
| | | | | | | | Reviewed-by: Kenneth Graunke <[email protected]>
| * i965: Add a type argument to brw_state_batch().Eric Anholt2011-07-1122-35/+87
| | | | | | | | | | | | | | | | | | I want to make brw_state_dump.c handle more than just the last statechange, so I want to keep track of what's in the batch state. By using AUB file numbering for most of these packets, this may be reusable for aub dumping. Reviewed-by: Kenneth Graunke <[email protected]>
| * intel: Make our context structure be a ralloc context.Eric Anholt2011-07-114-6/+8
| | | | | | | | | | | | | | This will let me hang cached compiler structs off of the context without having to worry about cleaning them up at destroy time. Reviewed-by: Kenneth Graunke <[email protected]>
| * ir_to_mesa: typo fix in a comment.Eric Anholt2011-07-111-3/+3
| |
| * i965: Fix fp-dst-aliasing-[12].vpfp.Eric Anholt2011-07-111-4/+19
| | | | | | | | | | | | | | There's no pretty way to avoid the overwriting of the src operands, so just use a temporary destination and rely on the MOV optimization. Reviewed-by: Ian Romanick <[email protected]>
| * i965: Fix fp-lit-src-equals-dst.Eric Anholt2011-07-111-11/+11
| | | | | | | | | | | | | | We were stomping over the source for the body of the LIT instruction when doing the MOV of 1.0 to the uninteresting channels. Reviewed-by: Ian Romanick <[email protected]>
| * glx: add a few missing glXChooseFBConfig() attributesBrian Paul2011-07-111-0/+4
| | | | | | | | | | | | Fixes https://bugs.freedesktop.org/show_bug.cgi?id=38842 NOTE: This is a candidate for the 7.11 branch.
| * mesa: fix assertion failure in delete_wrapperMarek Olšák2011-07-111-1/+2
| |
| * mesa: add a comment in _mesa_test_formatsMarek Olšák2011-07-111-0/+1
| |