summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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]>
* r600g: emit SQ_LDS_RESOURCE_MGMTAlex Deucher2011-07-123-0/+13
| | | | | | | | | | | | Need to be initialized to a reasonable value as compute code may change it. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=39119 NOTE: This is a candidate for the 7.11 branch. Signed-off-by: Alex Deucher <[email protected]>
* u_upload_mgr: add missing offset to src map in u_upload_buffer()Brian Paul2011-07-121-1/+1
| | | | Fixes regression from dda8d7ac3f0e5148d9738a57f7bc03216f6514d1
* 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]>
* autoconf: Do not select Xlib when building DRIEmil Velikov2011-07-121-1/+1
| | | | | | | | As Chia-I Wu said 'There are two libGL providers, Xlib and DRI based they cannot coexist' Signed-off-by: Emil Velikov <[email protected]> Signed-off-by: Marek Olšák <[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]>
* configure.ac: Make --{without,with}-gallium-drivers work as expectedIan Romanick2011-07-111-0/+7
| | | | | | | | | | This version is mostly Dan's post to the mesa-dev mailing list on 6/22/2011. NOTE: This is a candidate for the 7.10 and 7.11 branches. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Dan Nicholson <[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]>
* gallivm: Re-enable LLVMUnionTypeKind case for llvm-2.7 only.Vinson Lee2011-07-111-2/+2
| | | | LLVMUnionTypeKind is not in llvm-2.6, llvm-2.8, llvm-2.9, or llvm-3.0svn.
* 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.
* nvfx: handle PIPE_CAP_SM3David Heidelberger2011-07-111-0/+3
| | | | Signed-off-by: David Heidelberger <[email protected]>
* gallivm: Remove LLVMOpaqueKindType case with llvm-3.0.Vinson Lee2011-07-111-0/+2
| | | | | llvm-3.0svn r134829 removed LLVMOpaqueKindType from enum LLVMTypeKind in include/llvm-c/Core.h.
* glsl: Reject ambiguous function calls (multiple inexact matches).Kenneth Graunke2011-07-111-6/+27
| | | | | | | | | | | | | | | | | | | According to the GLSL 1.20 specification, "it is a semantic error if there are multiple ways to apply [implicit] conversions [...] such that the call can be made to match multiple signatures." Fixes a regression caused by 60eb63a855cb89962f2d5bb91e238ff2d1ab8702, which implemented the wrong policy of finding a "closest" match. However, this is not a revert, since the original code failed to continue looking for an exact match once it found two inexact matches. It's OK to have multiple inexact matches if there's also an exact match. NOTE: This is a candidate for the 7.10 and 7.11 branches. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=38971 Reviewed-by: Eric Anholt <[email protected]> Signed-off-by: Kenneth Graunke <[email protected]>
* 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]>
* configs: do not let llvm-config define NDEBUG in debug buildsBrian Paul2011-07-111-1/+1
| | | | Following the examples of Marek and Jose for autoconf and scons.
* 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]>
* configure.ac: do not let llvm-config define NDEBUG in debug buildsMarek Olšák2011-07-111-1/+1
| | | | Re-enables assertions in src/mesa.
* scons: Filter-out NDEBUG define from llvm-config.José Fonseca2011-07-111-1/+9
| | | | Based on a similar autoconf change from Marek.
* glx: add a few missing glXChooseFBConfig() attributesBrian Paul2011-07-112-3/+10
| | | | | | Fixes https://bugs.freedesktop.org/show_bug.cgi?id=38842 NOTE: This is a candidate for the 7.11 branch.
* glext.h: update to version 71Brian Paul2011-07-111-3/+81
|
* 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
|
* mesa: fix assertion failure in _mesa_test_formatsMarek Olšák2011-07-111-1/+2
| | | | Z32_FLOAT_X24S8 has DataType of GL_NONE.
* Revert "WIP r600g: depth_buffer_float renderbuffer support on evergreen"Marek Olšák2011-07-111-13/+1
| | | | | | This reverts commit 91a52dae97379d118965567b5c11e393996baeb9. Pushed accidentally.
* r600g: more valgrind fixesMarek Olšák2011-07-111-2/+2
|
* r600g: zero memory of ioctl parametersMarek Olšák2011-07-111-3/+3
| | | | Fixes valgrind warning.
* mesa: implement packing of DEPTH_STENCIL & FLOAT_32_UNSIGNED_INT_24_8_REV comboMarek Olšák2011-07-114-9/+20
| | | | Tested with the new piglit fbo-depthstencil test.
* WIP r600g: depth_buffer_float renderbuffer support on evergreenMarek Olšák2011-07-101-1/+13
|