summaryrefslogtreecommitdiffstats
path: root/src/gallium
Commit message (Collapse)AuthorAgeFilesLines
* egl_softpipe: Do not flush unlinked context.Chia-I Wu2009-08-211-3/+8
| | | | | | | An unlinked context is destroyed after _eglMakeCurrent. Flushing such context would cause segfault. Signed-off-by: Chia-I Wu <[email protected]>
* st/egl: Add support for drmModeDirtyFB command if foundJakob Bornecrantz2009-08-211-2/+10
|
* nv50: use VTX_ATTR_nF for constant vtxeltsChristoph Bumiller2009-08-203-1/+75
|
* nv50: set vertex buffer limitsChristoph Bumiller2009-08-201-2/+11
|
* nv50: modify vbo format to hw translation, add BGRA swizzleChristoph Bumiller2009-08-201-39/+65
|
* st/egl: Open the first drm nodeJakob Bornecrantz2009-08-201-1/+12
| | | | At least its better then hardcoded to i915
* tgsi: when printing/dumping programs indent loops and conditionalsBrian Paul2009-08-201-0/+35
|
* tgsi: check for SOA dependencies in SSE and PPC code generatorsBrian Paul2009-08-202-0/+8
| | | | Fall back to interpreter for now. This doesn't happen very often.
* tgsi: handle SOA dependencies for MOV/SWZBrian Paul2009-08-202-14/+44
| | | | | | | | | | | | | | | | | | | | | | SOA dependencies can happen when a register is used both as a source and destination and the source is swizzled. For example: MOV T, T.yxwz; would expand into: MOV t0, t1; MOV t1, t0; MOV t2, t3; MOV t3, t2; The second instruction will produce the wrong result since we wrote to t0 in the first instruction. We need to use an intermediate temporary to fix this. This will take more work to fix for all TGSI instructions. This seems to happen with MOV instructions more than anything else so fix that case now and warn on others. Fixes piglit glsl-vs-loop test (when not using SSE). See bug 23317.
* tgsi: added tgsi_full_instruction::Flags fieldBrian Paul2009-08-202-0/+3
| | | | Users of the parser can make use of this.
* gallium: rename copy/fill_rect utility functionsBrian Paul2009-08-195-11/+11
|
* gallium: fix tags target in Makefile.templateBrian Paul2009-08-191-1/+1
|
* tgsi: Add missing include.José Fonseca2009-08-191-0/+1
| | | | (cherry picked from commit d2787c02c130b1fe20d0c032d468622f2fdaef79)
* tgsi: Fix typo in ureg constant creation.José Fonseca2009-08-191-1/+1
| | | | (cherry picked from commit aa40c9abc7787fdf46cb661a4d0bb8bec513fc63)
* st/xlib: remove a couple more 'fake' referencesKeith Whitwell2009-08-191-4/+2
|
* st/xlib: remove dead ungrab helperKeith Whitwell2009-08-191-13/+0
|
* tgsi: silence compiler warningKeith Whitwell2009-08-191-1/+1
|
* tgsi: remove unused function argumentKeith Whitwell2009-08-191-4/+2
|
* tgsi: add missing functionality to support instructions with labelsKeith Whitwell2009-08-192-1/+57
| | | | | | | | | | | | | | | | Could previously emit opcodes with label arguments, but was no way to patch them with the actual destinations of those labels. Adds two functions: ureg_get_instruction_number - to get the id of the next instruction to be emitted ureg_fixup_label - to patch an emitted label to point to a given instruction number. Need some more complex examples than u_simple_shader, so far this has only been compile-tested.
* r300g: Force off ZTOP optimizations for now.Corbin Simpson2009-08-181-1/+2
|
* r300g: Utilize DONTBLOCK.Corbin Simpson2009-08-181-8/+19
| | | | Also ALGYRHYTHMS.
* radeon-gallium: Oh, look, we *do* already support DONTBLOCK.Corbin Simpson2009-08-181-6/+5
| | | | Well, okay, the kernel doesn't, but that's no excuse for us! :3
* r300g: Massively cleanup OQ.Corbin Simpson2009-08-186-29/+174
| | | | Still broken, but compiles cleaner, behaves better, etc.
* r300g: Add high_second_pipe cap for R3xx chipsets.Corbin Simpson2009-08-182-1/+11
| | | | | This name is totally subject to change if ever I need to separate R3xx for some other reason.
* radeon-gallium: Stop using outdated ioctls.Corbin Simpson2009-08-181-11/+3
|
* Revert "r300-gallium, radeon-gallium: Nuke gb_pipes from orbit."Corbin Simpson2009-08-186-2/+46
| | | | | | | | | | This reverts commit 6a40d1e9d96f8e8c57bc3bbd6f567cacd4471f59. Turns out that we *do* need these for OQ after all. Go figure. Conflicts: src/gallium/winsys/drm/radeon/core/radeon_r300.h
* Merge branch 'mesa_7_5_branch'Brian Paul2009-08-185-2/+18
|\
| * tgsi/ppc: we don't implement saturation modes yetBrian Paul2009-08-181-0/+5
| |
| * tgsi/sse: we don't implement saturation modes yetBrian Paul2009-08-181-0/+4
| | | | | | | | Fixes piglit fp-generic tests/shaders/generic/lrp_sat.fp, bug 23316.
| * gallium: Always map for READ flag when DISCARD is not set.José Fonseca2009-08-141-0/+7
| | | | | | | | | | | | | | | | | | | | This prevents the driver from discarding a buffer when the whole buffer is mapped for writing, but only a portion is effectively written. This is a temporary fix, because WRITE shouldn't imply DISCARD. The full fix implies using PIPE_BUFFER_USAGE_DISCARD, throughout the code, and will go only into master.
| * trace: Remove space next to the class attribute of the trace.José Fonseca2009-08-141-1/+1
| |
| * python/retrace: Open bz2 files correctly.José Fonseca2009-08-141-1/+1
| |
* | egl/xlib: move call to create_configs() after we set the Xdpy fieldBrian Paul2009-08-181-2/+2
| |
* | egl: Create the front texture the properlyJakob Bornecrantz2009-08-181-25/+9
| |
* | gallium: improved comments, minor whitespace changesBrian Paul2009-08-181-7/+10
| |
* | egl: Some per-driver data should be per-display.Chia-I Wu2009-08-182-19/+42
| | | | | | | | | | | | | | Move some fields of _EGLDriver to _EGLDisplay. It also becomes unnecessary to pass _EGLDisplay to drivers when _eglMain is called. Signed-off-by: Chia-I Wu <[email protected]>
* | egl: Overhaul driver API.Chia-I Wu2009-08-185-165/+102
| | | | | | | | | | | | | | | | | | | | | | | | The motivation is so that drivers do not need to look up and check for bad display, context, and etc. It also becomes unnecessary for drivers to call the link functions. This commit makes eglapi.[ch] do the lookup and check. As a result, the driver API is overhauled, and almost all sources and drivers need update. The updates are mainly find and replace with human brains. Signed-off-by: Chia-I Wu <[email protected]>
* | gallium: memset() tgsi_exec_machine to all zeros in tgsi_exec_machine_create()Brian Paul2009-08-171-8/+2
| | | | | | | | This fixes invalid values for CondStackTop, LoopStackTop, etc.
* | nv50: remove a few cases of directly casting struct pipe_contextMaarten Maathuis2009-08-172-3/+3
| |
* | nv50: borrow some flushing code from the ddxMaarten Maathuis2009-08-171-3/+11
| | | | | | | | | | - This fixes neverball corruption. - I'm unsure about what we're actually flushing here.
* | gallium: Make PIPE_TRANSFER_{READ,WRITE,READ_WRITE} bitmask friendly.Maarten Maathuis2009-08-171-3/+3
| |
* | nv50: whitespace fixes and deobfuscationMaarten Maathuis2009-08-179-69/+85
| |
* | cell: fix incorrect pipe_transfer testsBrian Paul2009-08-171-2/+4
| | | | | | | | The value is an enum, not a bitmask.
* | nv50: fix stencil stateChristoph Bumiller2009-08-171-6/+6
| | | | | | | | | | | | | | It's the front stencil methods that have contiguous offsets, not the back ones. Unfortunately the names in the header still have FRONT/BACK reversed, so I'm using hex values until it gets updated.
* | nv50: avoid a NULL-ptr dereference when the pipe context changesMaarten Maathuis2009-08-151-1/+26
| | | | | | | | - We cannot assume all state objects are present when the pipe context changes.
* | nv50: align registers used with TEX to 4Christoph Bumiller2009-08-151-1/+2
| | | | | | | | | | | | | | | | The TEX instruction is passed the first index of a contiguous range of 4 TEMP registers that contain coordinates / LOD and, after execution, the texel values. It seems the first index is required to be a multiple of 4 on some (older ?) cards.
* | st/xlib: reduce the proliferation of GLX context typesKeith Whitwell2009-08-141-57/+37
| | | | | | | | | | | | | | | | | | | | Now there is just a single, struct __GLXcontextRec, which is the GLXContext typedef has already been defined as a pointer to. I believe this is the intended usage, that GLX implementations should define that struct as they require. Merge the two previous structs into one and get rid of the no-longer-necessary type casts and sub-classing.
* | st/dri: remove unused dummyContext valueKeith Whitwell2009-08-142-14/+0
| |
* | nv50: fix mipmap offsets and tilingChristoph Bumiller2009-08-143-17/+34
| | | | | | | | | | | | The hardware expects a texture's tile mode to change with the mipmap level. Also, only multiply by block size once to obtain size.
* | nv50: make sure we don't re-emit outdated scissor stateChristoph Bumiller2009-08-141-4/+4
| | | | | | | | | | Since we don't turn off scissors, we need to update the stateobj when the framebuffer size changes.