summaryrefslogtreecommitdiff
path: root/src/gallium
AgeCommit message (Collapse)Author
2011-01-13scons: Build libOpenVG.dll & libEGL.dllJosé Fonseca
But without creating liblibOpenVG or liblibEGL elsewhere. Thanks Chia-I Wu for pointing this out.
2011-01-13util: Undo spurious changes in last commit.José Fonseca
2011-01-13util: Don't limit debug_printf message length on unices.José Fonseca
2011-01-13egl: Improve driver selection.Chia-I Wu
The idea is to be able to match a driver using the following order try egl_gallium with hw renderer try egl_dri2 try egl_gallium with sw renderer try egl_glx given the module list egl_gallium egl_dri2 egl_glx For that, UseFallback initialization option is added. The module list is matched twice: with the option unset and with the option set. In the first pass, egl_gallium skips its sw renderer and egl_glx rejects to initialize since UseFallback is not set. In the second pass, egl_gallium skips its hw renderer and egl_dri2 rejects to initialize since UseFallback is set. The process stops at the first driver that initializes the display.
2011-01-13egl: Simplify driver matching.Chia-I Wu
Add initialization options that drv->API.Initialize should support. Replace drv->Probe by TestOnly initialization option and simplify _eglMatchDriver.
2011-01-13egl: Cleanup _EGLDisplay initialization.Chia-I Wu
Reorder/rename and document the fields that should be set by the driver during initialization. Drop the major/minor arguments from drv->API.Initialize.
2011-01-13nvc0: disable calling of sw methods we don't implementBen Skeggs
Left in the code as a marker of what NVIDIA do, just in case we need to do this some day. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2011-01-13nvc0: fix mp_stack_bo relocationBen Skeggs
Fixes a PT_NOT_PRESENT error cause by: - allocating in VRAM - emitting GART relocs to 0x17bc/0x17c0, moving the buffer - telling the bufmgr that the buffer should be in VRAM when we use it, but not correcting the value sent to 0x17bc/0x17c0. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2011-01-12noop: change var type to silence warningBrian Paul
2011-01-12r600g: also look at tex inst when for maximum gpu countChristian König
2011-01-12r600g: implement output modifiers and use them to further optimize LRPChristian König
2011-01-12r600g: use special constants for 0, 1, -1, 1.0f, 0.5f etcChristian König
2011-01-12r600g: optimize temp register handling for LRPChristian König
2011-01-12r600g: optimize away CF_INST_POPChristian König
If last instruction is an CF_INST_ALU we don't need to emit an additional CF_INST_POP for stack clean up after an IF ELSE ENDIF.
2011-01-12r600g: make dumping of shaders an optionChristian König
2011-01-12r600g: fix alu dumpingChristian König
2011-01-12r600g: improve r600_bc_dumpChristian König
2011-01-12scons: Update windows build for vgapi->openvg rename.José Fonseca
2011-01-12scons: Fix build on systems without libOpenVG.soJosé Fonseca
2011-01-12scons: Updates for targets/egl-static.Chia-I Wu
Update SConscripts to re-enable or add support for EGL on windows and x11 platforms respectively. targets/egl-gdi is replaced by targets/egl-static, where "-static" means pipe drivers and state trackers are linked to statically by egl_gallium, and egl_gallium is a built-in driver of libEGL. There is no more egl_gallium.dll on Windows.
2011-01-12targets/egl-static: New EGL target for scons.Chia-I Wu
This target is based on and replaces egl-gdi. It is suitable for both windows and x11.
2011-01-12r600g: texture instructions also work fine with TGSI_FILE_INPUTChristian König
2011-01-12r600g: DP4 also supports writemaskingChristian König
2011-01-12r600g: Why all this fiddling with tgsi_helper_copy?Christian König
tgsi_helper_copy is used on several occasions to copy a temporary result into the real destination register to emulate writemasks for OP3 and reduction operations. According to R600 ISA that's unnecessary. This patch fixes this use for MAD, CMP and DP4.
2011-01-12r600g: fix tex and vtx joiningChristian König
2011-01-11r600g: Fixed SIN/COS/SCS for the case where the operand is a literal.Tilman Sauerbeck
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de> Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
2011-01-11noop: remove dead dri targetJerome Glisse
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2011-01-11r600g: move user fence into base radeon structureJerome Glisse
This avoid any issue when context is free and we still try to access fence through radeon structure. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2011-01-10r300g: add debug option for buffer upload loggingMarek Olšák
2011-01-10st/egl: Fix a void pointer arithmetic warning.Chia-I Wu
2011-01-10mesa: Remove GLES overlay.Chia-I Wu
With core mesa doing runtime API checks, GLES overlay is no longer needed. Make --enable-gles-overlay equivalent to --enable-gles[12]. There may still be places where compile-time checks are done. They could be fixed case by case.
2011-01-09noop: make noop useable like trace or rbugJerome Glisse
If you want to enable noop set GALLIUM_NOOP=1 as an env variable. You need first to enable noop wrapping for your driver see change to src/gallium/targets/dri-r600/ in this commit as an example. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2011-01-09r300g: do not upload the same user buffer several timesMarek Olšák
Performance++.
2011-01-09nvc0: implement queriesChristoph Bumiller
2011-01-09i965g: fix warningsDave Airlie
2011-01-09i965g: update intel_decode from upstream.Dave Airlie
2011-01-09i965g: update disassembler code from classic.Dave Airlie
still a bit of work to do, the winsys gen setting is a bit of a hack.
2011-01-09i965g: update brw_defines.h from classic driverDave Airlie
2011-01-09i965g: update brw_structs.h from classic driver.Dave Airlie
2011-01-09i965g: update to similiar gen stuff as i965Dave Airlie
2011-01-09r300g: fix crash when flushing ZMASKMarek Olšák
https://bugs.freedesktop.org/show_bug.cgi?id=32912 The fix is to call update_derived_state before user buffer uploads. I've also moved some code around. Unfortunately, there are still some ZMASK-related bugs which cause misrendering, i.e. flushing doesn't always work and glean/fbo fails.
2011-01-09targets/egl: add libnvc0.a to nouveau libsMarcin Slusarz
2011-01-08nvfx,nv50: pipe_reference the constant buffersChristoph Bumiller
2011-01-08nvc0: fix primitive restart in immediate modeChristoph Bumiller
2011-01-08r300g: fix a surface leak when flushing ZMASKMarek Olšák
2011-01-08r300g: rework command submission and resource space checkingMarek Olšák
The motivation behind this rework is to get some speed by reducing CPU overhead. The performance increase depends on many factors, but it's measurable (I think it's about 10% increase in Torcs). This commit replaces libdrm's radeon_cs_gem with our own implemention. It's optimized specifically for r300g, but r600g could use it as well. Reloc writes and space checking are faster and simpler than their counterparts in libdrm (the time complexity of all the functions is O(1) in nearly all scenarios, thanks to hashing). (libdrm's radeon_bo_gem is still being used in the driver.) It works like this: cs_add_reloc(cs, buf, read_domain, write_domain) adds a new relocation and also adds the size of 'buf' to the used_gart and used_vram winsys variables based on the domains, which are simply or'd for the accounting purposes. The adding is skipped if the reloc is already present in the list, but it accounts any newly-referenced domains. cs_validate is then called, which just checks: used_vram/gart < vram/gart_size * 0.8 The 0.8 number allows for some memory fragmentation. If the validation fails, the pipe driver flushes CS and tries do the validation again, i.e. it validates only that one operation. If it fails again, it drops the operation on the floor and prints some nasty message to stderr. cs_write_reloc(cs, buf) just writes a reloc that has been added using cs_add_reloc. The read_domain and write_domain parameters have been removed, because we already specify them in cs_add_reloc. The space checking has been tested by putting small values in vram/gart_size variables.
2011-01-08nvc0: fix reloc domain conflict on buffer migrationChristoph Bumiller
Occurred because the code assumed that buf->domain would remain equal to old_domain.
2011-01-08nvc0: upload user buffers only from draw info min to max indexChristoph Bumiller
There are actually applications that profit immensely from this.
2011-01-08nvc0: fix emission of first 3 u8 indices to RING_NIChristoph Bumiller
2011-01-08nvc0: reset mt transfer address after read loop over layersChristoph Bumiller