summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* radeon: Improve state emit code.Pauli Nieminen2009-08-218-60/+78
| | | | Trying to make understanding code easier with small refactoring and renaming.
* r300: Add debug output to show how much was emited in TryDrawPrims.Pauli Nieminen2009-08-211-2/+6
|
* r300: Predict emit size for next rendering operation.Pauli Nieminen2009-08-214-4/+43
| | | | | | | | We do flush for cmd buffer in case there isn't enough space left for whole rendering operation. This protects dma regions from getting released in middle of state emit. Signed-off-by: Pauli Nieminen <[email protected]>
* r300: Handle possible fall back if space check fails.Pauli Nieminen2009-08-211-0/+3
|
* r300: Delay allocation of dma regions in TryDrawprims.Pauli Nieminen2009-08-211-47/+78
| | | | | This makes it easier to predict size of next rendering operation so we can do early flush.
* r300: Clean emit code.Pauli Nieminen2009-08-217-163/+181
| | | | | | | | | This fixes some state atom check functions from returing wrong emit size. There is emit code cleanup so that emit function selection is done in init time instead of runtime. Signed-off-by: Pauli Nieminen <[email protected]>
* radeon: Port flush preventation code from r200 to r100.Pauli Nieminen2009-08-215-108/+246
| | | | | | | | - emit prediction - fixes to emit_sizes for data - clean up of excesive use of radeonEnsureCmdBufferSpace Signed-off-by: Pauli Nieminen <[email protected]>
* r200: Make swtcl use state size prediction for flush.Pauli Nieminen2009-08-211-1/+1
| | | | Signed-off-by: Pauli Nieminen <[email protected]>
* r200: Remove unnecessery Elts from r200 context.Pauli Nieminen2009-08-212-6/+2
| | | | Signed-off-by: Pauli Nieminen <[email protected]>
* r200: Remove unnecessary calls to rcommonEnsureCmdBufSpace.Pauli Nieminen2009-08-212-16/+6
| | | | | | Calling EnsureCmdBufSpace is not required because rendering pipeline has to quarentee free space. Signed-off-by: Pauli Nieminen <[email protected]>
* r200: Fix atom->check call to return emit size for atom.Pauli Nieminen2009-08-212-160/+303
| | | | | | | This patch makes render emit size prediction count the corect maximum emit size for state. Signed-off-by: Pauli Nieminen <[email protected]>
* r200: Prevent flush in middle of rendering.Pauli Nieminen2009-08-214-3/+83
| | | | | | | | | | | Patch adds prediction functionthat tries to predict emit size to the smallest possible values that is quarenteed to be higher than worst case scenario in rendering pipeline. State emit size prediction code is in place but fix for emit sizes is included in next patch. Signed-off-by: Pauli Nieminen <[email protected]>
* radeon/r200: Add -Wall to default build flags like it is in r300/r600Pauli Nieminen2009-08-212-2/+4
| | | | Signed-off-by: Pauli Nieminen <[email protected]>
* glx: Make drawables persistent untill they are changed by glXMakeCurrentPauli Nieminen2009-08-211-41/+80
| | | | | | | | | | | | | | | This fixes bug that xdemos/manywin would segfault if it was run with command ./manywin 2. Demo is tring to call glXSwapBuffers while another context was bind using glXMakeCurrent. Fix is simple makes drawable and readable persistent untill they change or context is destroyed. I found a logic error when same dri context is used for multiple drawables which caused readable and drawable to fall out of sync in special case. Fix is simple just updating drawables more often than in original patch. Signed-off-by: Pauli Nieminen <[email protected]>
* egl: Make _eglChooseDriver return the filename of the driver.Chia-I Wu2009-08-211-13/+33
| | | | | | | | The real difference is that the driver suffix is now appended. This also fixes an annoying bug that EGL_DRIVER could not specify the path to a driver because a suffix was always appended. Signed-off-by: Chia-I Wu <[email protected]>
* egl: Remove dependency on libX11.Chia-I Wu2009-08-218-205/+44
| | | | | | | | | | | | libX11 is used to determine the screen number, which is in turned used to determine the DRI driver. However, the sysfs interface for determining the DRI driver is gone, and no working driver depends on this mechanism. Display string parsing is moved to a new function, _eglSplitDisplayString. Signed-off-by: Chia-I Wu <[email protected]>
* 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]>
* egl: Check for null display in handle checking.Chia-I Wu2009-08-212-7/+12
| | | | | | The display may be NULL when checking a handle. Signed-off-by: Chia-I Wu <[email protected]>
* st/egl: Add support for drmModeDirtyFB command if foundJakob Bornecrantz2009-08-211-2/+10
|
* radeon: Add comment to explain logic for freeing dma buffers.Pauli Nieminen2009-08-211-0/+3
|
* r600: convert to using common radeon state atomsAlex Deucher2009-08-208-233/+154
| | | | | | switches more state handling to common code. We need should be more fine grained with the state atoms eventually.
* r600: improve state emissionAlex Deucher2009-08-206-30/+182
| | | | | Slowing migrating to atom based system like the other radeon drivers.
* r600: split state emit into block specific functionsAlex Deucher2009-08-206-320/+379
| | | | | We probably want to go finer grained eventually, but this is a good start.
* progs/glsl: report compile/link times in shtest.cBrian Paul2009-08-201-0/+10
|
* progs/util: added GetShaderCompile/LinkTime() to get compilation/link timesBrian Paul2009-08-202-0/+39
|
* progs/glsl: update multitex.shtest for new texture syntaxBrian Paul2009-08-201-2/+2
|
* progs/glsl: update shtest.c to handle 1D/3D/CUBE/RECT texturesBrian Paul2009-08-201-16/+70
|
* progs/glsl: tweaks to shtest.cBrian Paul2009-08-201-2/+3
| | | | | | 1. Larger sphere to match cube size 2. Allow -geometry option to override window size 3. Cube samplers
* 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
* progs/glsl: more comments in shtest.cBrian Paul2009-08-201-0/+2
|
* 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.
* r600: try and get everything in the draw in one IBAlex Deucher2009-08-201-3/+10
| | | | | fixes corruption issues with apps like teapot and geartrain.
* r600: move misc regs from general stateAlex Deucher2009-08-201-7/+9
| | | | | These regs don't use the SET_CONTEXT_REG packet, so they weren't getting set correctly.
* mesa: add GL_DEPTH_STENCIL to glCopyPixels error checkBrian Paul2009-08-201-1/+8
| | | | | Plus, add a comment about 'type' error checking. See bug 19087.
* r600: rework emit codeAlex Deucher2009-08-204-37/+44
| | | | make sure we allocate enough space for relocs
* radeon: Update regulary cs processing info from kernel.Pauli Nieminen2009-08-203-6/+12
| | | | | | This fixes problem that dma buffers were leaking in dri1 mode. Signed-off-by: Pauli Nieminen <[email protected]>
* gallium: rename copy/fill_rect utility functionsBrian Paul2009-08-196-12/+12
|
* gallium: fix tags target in Makefile.templateBrian Paul2009-08-191-1/+1
|
* radeon: fix typo in last dma patchAlex Deucher2009-08-191-1/+1
|
* intel: Fix failure to commit -a --amend before last push.Eric Anholt2009-08-191-1/+1
|
* intel: Align cubemap texture height to its padding requirements.Eric Anholt2009-08-191-0/+10
|
* intel: Align untiled region height to 2 according to 965 docs.Eric Anholt2009-08-191-0/+10
| | | | | This may or may not be required pre-965, but it doesn't seem unlikely, and I'd rather be safe.
* radeon: Add debug output for dma buffer object numbers.Pauli Nieminen2009-08-191-3/+18
| | | | Signed-off-by: Pauli Nieminen <[email protected]>
* radeon: Fix dma buffer object pool to scale object sizes.Pauli Nieminen2009-08-192-11/+42
| | | | | | This fixes problems when application is using large vertex arrays for drawing. Signed-off-by: Pauli Nieminen <[email protected]>