summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
Commit message (Collapse)AuthorAgeFilesLines
* r600g: add evergreen+ big endian supportAlex Deucher2011-04-194-6/+74
| | | | | | Based on Cédric's r6xx/r7xx patch. Signed-off-by: Alex Deucher <[email protected]>
* r600g: add big endian support for r6xx/r7xxCédric Cano2011-04-198-14/+151
| | | | | Signed-off-by: Cedric Cano <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* r600g: add cb support for snorm formats.Dave Airlie2011-04-192-9/+13
| | | | | | Check for signed type and enable SNORM. Signed-off-by: Dave Airlie <[email protected]>
* r600g: fix warnings with piglit texture-rg test.Dave Airlie2011-04-192-0/+6
| | | | | | Fill in the swaps for the formats to fix warnings. Signed-off-by: Dave Airlie <[email protected]>
* r600g: modify block to only emit the first few dirty registers. (v2)Dave Airlie2011-04-191-1/+2
| | | | | | | | | | | This gets me from 2200 to 1978 dwords for a gears frame. This is due to us having some 32-dwords blocks in the SPI, that we only modify the first dwords off. v2: fix dirty reg count from Bas Nieuwenhuizen Signed-off-by: Dave Airlie <[email protected]>
* r600g: track dirty registers better. (v2)Dave Airlie2011-04-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | This is a first step to decreasing the CPU usage, by decreasing how much stuff we pass to the GPU and hence to the kernel CS checker. This adds a check to see if the values we need to write are actually dirty, and avoids writing if they are. However certain register need to always be written so we add a new flag to say which ones should be always written if used. (Note this could probably be done cleaner with a larger refactoring, since I think the CONST_BUFFER_SIZE_PS/VS and CONST_CACHE_PS/VS might be better off as a special state). It also moves the need_bo to be a flags on the register now. With this, a frame of gears goes from emitting 3k dwords to emitting 2k dwords, and I'm sure it could get a lot smaller. v2: fix some evergreen dirty bits. Original patch from: Bas Nieuwenhuizen, I NIHed nearly the same thing before seeing his patch on the list, oops. Reviewed-by: Bas Nieuwenhuizen Signed-off-by: Dave Airlie <[email protected]>
* nvfx: comment-out unused varBrian Paul2011-04-181-1/+1
|
* r300g: remove non-existing include path from SConscriptMarek Olšák2011-04-181-1/+0
|
* r300g/winsys: rename r300->radeon and do a little cleanupMarek Olšák2011-04-1822-439/+117
| | | | | Renaming a few files, types, and functions. Also make the winsys independent of r300g.
* r600g: disable ARB_draw_instancedMarek Olšák2011-04-181-1/+3
| | | | | | | The very presence of this extension breaks things. This should bring us closer to being able to run Unigine Heaven. The extension will be re-enabled once gl_InstanceID is implemented.
* r300g: disable ARB_draw_instanced on SWTCL chipsets.Marek Olšák2011-04-181-1/+1
| | | | This fixes Unigine Heaven.
* gallium: include u_format.h for util_format_is_supportedMarcin Slusarz2011-04-176-0/+6
| | | | | | | | | | | | Without it gcc complains: nv50_screen.c: In function ‘nv50_screen_is_format_supported’: nv50_screen.c:48: warning: implicit declaration of function ‘util_format_is_supported’ and handles it wrongly - util_format_is_supported returns boolean, which is typedef'ed to uchar, but function without prototype is assumed to return int. For me nv50_screen_is_format_supported was returning true for float formats without --enable-texture-float...
* nvc0: work around what looks like a code prefetch bugChristoph Bumiller2011-04-171-1/+4
| | | | | | | Sounds very unlikely, but I don't have a better explanation at the moment. The GPU throws page faults at the first page after the code buffer quite frequently on startup, and traces don't show us overflowing.
* nv50,nvc0: add new texture and render target formatsChristoph Bumiller2011-04-172-7/+177
|
* nv50,nvc0: fix normalized RG16 and RGBA32 texture format entriesChristoph Bumiller2011-04-172-6/+6
|
* nvc0: fix viewport rectangle calculationChristoph Bumiller2011-04-171-5/+7
|
* gallium: add and use generic function for querying patented format support (v2)Marek Olšák2011-04-158-41/+19
| | | | v2: Unsigned floats are allowed regardless of the configure switch.
* r300g: enable A/L/LA/I float render targetsMarek Olšák2011-04-151-14/+14
|
* svga: defined QSZ in terms of SVGA3D_MAX_DRAW_PRIMITIVE_RANGESBrian Paul2011-04-131-1/+3
|
* svga: define SVGA3D_MAX_DRAW_PRIMITIVE_RANGES and update commentsBrian Paul2011-04-131-4/+12
|
* svga: Rebind framebuffer and tss bindings strictly when necessary.José Fonseca2011-04-126-26/+45
| | | | | | | | | | The earlier change to ensure rendertargets and textures are always rebound at every command buffer start had the downside of making successive flushes no longer no-ops, as a command buffer with merely the rebinding commands were being unnecessarily sent to the vGPU. This change only re-emits the bindings when necessary, by keeping track of the need to rebind outside of the dirty state update mechanism.
* r600g: handle PIPE_CAP_FRAGMENT_COLOR_CLAMP_CONTROL in get_paramMarek Olšák2011-04-111-0/+1
|
* nv50,nvc0: silence shader debug outputChristoph Bumiller2011-04-1016-109/+85
|
* nvc0: make the card permit separate colour outputsChristoph Bumiller2011-04-102-14/+4
|
* nv50-nvc0: make use of COLOR_MASK,BLEND_ENABLE_COMMONChristoph Bumiller2011-04-109-31/+32
|
* nvc0: shrink CSOs a littleChristoph Bumiller2011-04-104-29/+25
|
* nv50,nvc0: identify some line rasterization stateChristoph Bumiller2011-04-106-6/+21
| | | | Fixes width of non-smooth (aliased) lines on nvc0.
* nvc0: force perspective correction hint to nicestChristoph Bumiller2011-04-102-0/+7
| | | | | | | | | Fixes issues in e.g. nexuiz (desertfactory) or supertuxkart that look like lighting bugs. They're not visible with the software rasterizers because their notion of linear interpolation seems to be different from that of nv50/nvc0.
* nv50,nvc0: don't insert instructions after the block terminatorChristoph Bumiller2011-04-105-7/+25
|
* Revert "r300g: handle DISCARD_WHOLE_RESOURCE for buffers"Marek Olšák2011-04-081-25/+10
| | | | | | | | | | | | | This reverts commit 437c748bf5072d2bded77a00c74c51cdb8b510e5. The commit is wrong for several reasons. One of them is when we grab a new buffer, we should update all the states it is bound in, including all parallel contexts. I don't think this is even doable. The correct solution would be upload data via a temporary buffer and do resource_copy_region to the original one. https://bugs.freedesktop.org/show_bug.cgi?id=36088
* r300g: fix another crash with hyperzMarek Olšák2011-04-082-22/+2
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=36086
* r300g: emit US_FORMAT on R520 onlyMarek Olšák2011-04-082-2/+2
|
* r300g: fix crash with hyperzMarek Olšák2011-04-081-6/+4
| | | | r300_update_hyperz_state is no longer required to be called here.
* r300g: Properly take the sampler view's first_level into account when sampling.Henri Verbeet2011-04-081-15/+21
| | | | | Signed-off-by: Brian Paul <[email protected]> Signed-off-by: Marek Olšák <[email protected]>
* llvmpipe: Take the sampler view's first_level into account when sampling.Fabian Bieler2011-04-085-3/+13
|
* softpipe: Take the sampler view's first_level into account when sampling.Henri Verbeet2011-04-081-16/+16
| | | | Signed-off-by: Brian Paul <[email protected]>
* r300g: do not advertise R16F and RG16F on DRM < 2.8.0Marek Olšák2011-04-081-2/+5
|
* r300g: fix texturing with sizes > 2048 on r500Marek Olšák2011-04-087-8/+52
|
* r600g: Unreference framebuffer state on context destruction.Henri Verbeet2011-04-071-0/+1
| | | | Signed-off-by: Henri Verbeet <[email protected]>
* r600g: Use symbolic names for NUMBER_TYPE.Henri Verbeet2011-04-072-5/+5
| | | | Signed-off-by: Henri Verbeet <[email protected]>
* docs: replace llvmpipe/README with docs/llvmpipe.htmlBrian Paul2011-04-071-138/+0
|
* llvmpipe: document issue with LLVM 2.8 and earlier with AVXBrian Paul2011-04-071-0/+4
|
* svga: another tweak to adjust_x term (use -0.5)Brian Paul2011-04-071-1/+1
|
* r600g: Fix non-independent blend state.Julian Adams2011-04-062-14/+20
| | | | | | This fixes piglit fbo/fbo-drawbuffers-blend-add. Signed-off-by: Henri Verbeet <[email protected]>
* trace: Correct/cleanup.José Fonseca2011-04-066-74/+114
| | | | | | | | | Observe the actual type hierarchy and polymorphism of sampler views and surface state. s/texture/resource/ etc.
* Revert "trace: Dump blend state as a binary blob."José Fonseca2011-04-061-1/+37
| | | | | | | This reverts commit dcdf94c87c087186f963b6e201b2989c61a76ef0. No retrace support anymore, so human-legible representation of blend state is much more useful than a blob.
* st/python: Remove bindings, and all its dependencies.José Fonseca2011-04-061-1/+6
| | | | | | | | | Because: - bindings are not fully automatic, and they are broken most of the time - unit tests/samples can be written in C on top of graw - tracing/retracing is more useful at API levels with stable ABIs such as GL, producing traces that cover more layers of the driver stack and and can be used for regression testing
* r300g: postpone fragment shader state validation until draw_vboMarek Olšák2011-04-054-22/+52
|
* r300g: fix RG/LATC1_SNORM by doing UNORM->SNORM conversion in the shaderMarek Olšák2011-04-054-30/+63
|
* r300/compiler: implement the CND opcodeMarek Olšák2011-04-051-2/+1
| | | | No one uses it now, but I will need it for a lowering pass.