summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote branch 'origin/master' into pipe-videoChristian König2010-11-117-49/+57
|\
| * r300g: turn magic numbers into names in the hyperz codeMarek Olšák2010-11-101-12/+18
| |
| * r300g: rename has_hyperz -> can_hyperzMarek Olšák2010-11-105-11/+11
| |
| * r300g: mention ATI in the renderer stringMarek Olšák2010-11-101-25/+25
| |
| * r300g: Do not use buf param before checking for NULL.Guillermo S. Romero2010-11-041-1/+1
| | | | | | | | | | | | | | Commit 8dfafbf0861fe3d2542332658dd5493851053c78 forgot to update r300g. There is a buf == NULL check, but buf is used before for var init. Tested-by: Guillermo S. Romero <[email protected]>
| * scons: Add aliases for several pipe drivers.José Fonseca2010-11-021-0/+2
| |
* | [g3dvl] remove empty block handling for nowChristian König2010-11-111-1/+0
| | | | | | | | | | Maybe this isn't going into the right direction, but it makes handling the code easier for now.
* | Merge branch 'master' of ssh://git.freedesktop.org/git/mesa/mesa into pipe-videoChristian König2010-10-286-11/+24
|\| | | | | | | | | Conflicts: src/gallium/include/pipe/p_format.h
| * r300g: add a default channel ordering of texture border for unhandled formatsMarek Olšák2010-10-271-9/+5
| | | | | | | | | | It should fix the texture border for compressed textures. Broken since 8449a4772a73f613d9425b691cffba6a261df813.
| * r300g: Silence uninitialized variable warning.Vinson Lee2010-10-271-0/+5
| | | | | | | | | | | | | | Fixes this GCC warning. r300_state_derived.c: In function 'r300_update_derived_state': r300_state_derived.c:593: warning: 'r' may be used uninitialized in this function r300_state_derived.c:593: note: 'r' was declared here
| * r300g: fix texture border for 16-bits-per-channel formatsMarek Olšák2010-10-241-4/+9
| | | | | | | | | | This is kinda hacky, but it's hard to come up with a generic solution for all formats when only a few are used in practice (I mostly get B8G8R8*8).
| * r300g: say no to PIPE_CAP_STREAM_OUTPUT and PIPE_CAP_PRIMITIVE_RESTARTMarek Olšák2010-10-221-0/+2
| |
| * r300g: do not print get_param errors in non-debug buildMarek Olšák2010-10-221-4/+4
| |
| * r300g: Add new debug option for logging vertex/fragment program statsTom Stellard2010-10-184-4/+8
| |
| * r300g: clean up warning due to unknown cap.Dave Airlie2010-10-151-0/+1
| |
* | Merge branch 'master' of ssh://git.freedesktop.org/git/mesa/mesa into pipe-videoChristian König2010-10-1251-3547/+6883
|\| | | | | | | | | | | | | | | | | | | | | Conflicts: configure.ac src/gallium/drivers/nvfx/Makefile src/gallium/include/pipe/p_defines.h src/gallium/include/pipe/p_screen.h src/gallium/include/state_tracker/dri1_api.h src/gallium/include/state_tracker/drm_api.h src/gallium/winsys/nouveau/drm/nouveau_drm_api.c
| * r300g: fix microtiling for 16-bits-per-channel formatsMarek Olšák2010-10-051-3/+3
| | | | | | | | | | | | These texture formats (like R16G16B16A16_UNORM) were untested until now because st/mesa doesn't use them. I am testing this with a hacked st/mesa here.
| * r300g: add support for L8A8 colorbuffersMarek Olšák2010-10-021-0/+3
| | | | | | | | | | Blending with DST_ALPHA is undefined. SRC_ALPHA works, though. I bet some other formats have similar limitations too.
| * r300g: add support for R8G8 colorbuffersMarek Olšák2010-10-021-1/+11
| | | | | | | | | | | | | | | | The hw swizzles have been obtained by a brute force approach, and only C0 and C2 are stored in UV88, the other channels are ignored. R16G16 is going to be a lot trickier.
| * r300g: fix conditional rendering in non-wait pathMarek Olšák2010-09-301-3/+3
| | | | | | | | NOTE: This is a candidate for the 7.9 branch.
| * r300g: add support for formats beginning with X, like X8R8G8B8Marek Olšák2010-09-292-12/+40
| | | | | | | | This is actually a format translator fix.
| * r300g: fix swizzling of texture border colorMarek Olšák2010-09-281-34/+7
| | | | | | | | NOTE: This is a candidate for the 7.9 branch.
| * r300g: add support for 3D NPOT textures without mipmappingMarek Olšák2010-09-285-25/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The driver actually creates a 3D texture aligned to POT and does all the magic with texture coordinates in the fragment shader. It first emulates REPEAT and MIRRORED wrap modes in the fragment shader to get the coordinates into the range [0, 1]. (already done for 2D NPOT) Then it scales them to get the coordinates of the NPOT subtexture. NPOT textures are now less of a lie and we can at least display something meaningful even for the 3D ones. Supported wrap modes: - REPEAT - MIRRORED_REPEAT - CLAMP_TO_EDGE (NEAREST filtering only) - MIRROR_CLAMP_TO_EDGE (NEAREST filtering only) - The behavior of other CLAMP modes is undefined on borders, but they usually give results very close to CLAMP_TO_EDGE with mirroring working perfectly. This fixes: - piglit/fbo-3d - piglit/tex3d-npot
| * r300g: code cleanupsMarek Olšák2010-09-281-30/+25
| | | | | | | | | | | | | | | | | | Some random stuff I had here. 1) Fixed some misleading comments. 2) Removed fake_npot, since it's redundant. 3) lower_texture_rect -> scale_texcoords 4) Reordered and reindented some TEX transform code.
| * r300g: fix macrotiling on R350Marek Olšák2010-09-261-2/+2
| | | | | | | | | | | | MACRO_SWITCH on R350 appears to use the RV350 mode by default. Who knew? NOTE: This is a candidate for the 7.9 branch.
| * r300g: Remove unused variable.Vinson Lee2010-09-261-1/+0
| | | | | | | | | | | | Fixes this GCC warning. r300_state.c: In function 'r300_create_rs_state': r300_state.c:925: warning: unused variable 'i'
| * r300g: fix glsl-fs-pointcoordDave Airlie2010-09-264-23/+28
| | | | | | | | | | | | | | Move GB_ENABLE to derived rs state, and find sprite coord for the correct generic and enable the tex coord for that generic. Signed-off-by: Dave Airlie <[email protected]>
| * r300g: Silence uninitialized variable warning.Vinson Lee2010-09-241-0/+1
| | | | | | | | | | | | | | Silence this GCC warning. r300_state_derived.c: In function 'r300_update_derived_state': r300_state_derived.c:578: warning: 'r' may be used uninitialized in this function r300_state_derived.c:578: note: 'r' was declared here
| * r300g: fix the border color for every format other than PIPE_FORMAT_B8G8R8A8Marek Olšák2010-09-243-6/+84
| | | | | | | | | | | | | | TX_BORDER_COLOR should be formatted according to the texture format. Also the interaction with ARB_texture_swizzle should be fixed too. NOTE: This is a candidate for the 7.9 branch.
| * r300g: fix a copy-paste typo for loggingMarek Olšák2010-09-241-3/+3
| |
| * r300g: Always try to build libr300compiler.aTom Stellard2010-09-231-0/+1
| | | | | | | | | | | | | | | | Make libr300compiler.a a PHONY target so that this library will always be built. This fixes the problem of libr300compiler.a not being updated when r300g is being built and r300c is not. This is a candidate for the Mesa 7.9 branch.
| * r300g: fix point sprite coord.Dave Airlie2010-09-241-3/+1
| | | | | | | | | | | | handled elsewhere now. thanks to Droste on irc for pointing out the fix
| * util/r300g: split the r300 index buffer modifier functions out to utilDave Airlie2010-09-201-108/+4
| | | | | | | | | | | | These can be used by other drivers, like r600g. Signed-off-by: Dave Airlie <[email protected]>
| * r300g/swtcl: fix CS overrunMarek Olšák2010-09-162-8/+28
| | | | | | | | https://bugs.freedesktop.org/show_bug.cgi?id=29901
| * r300g: prevent creating multiple winsys BOs for the same handleMarek Olšák2010-09-151-4/+0
| | | | | | | | | | | | | | This fixes a DRM deadlock in the cubestorm xscreensaver, because somehow there must not be 2 different BOs relocated in one CS if both BOs back the same handle. I was told it is impossible to happen, but apparently it is not, or there is something else wrong.
| * gallium: introduce get_shader_param (ALL DRIVERS CHANGED) (v3)Luca Barbieri2010-09-141-35/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes in v3: - Also change trace, which I forgot about Changes in v2: - No longer adds tessellation shaders Currently each shader cap has FS and VS versions. However, we want a version of them for geometry, tessellation control, and tessellation evaluation shaders, and want to be able to easily query a given cap type for a given shader stage. Since having 5 duplicates of each shader cap is unmanageable, add a new get_shader_param function that takes both a shader cap from a new enum and a shader stage. Drivers with non-unified shaders will first switch on the shader and, within each case, switch on the cap. Drivers with unified shaders instead first check whether the shader is supported, and then switch on the cap. MAX_CONST_BUFFERS is now per-stage. The geometry shader cap is removed in favor of checking whether the limit of geometry shader instructions is greater than 0, which is also used for tessellation shaders. WARNING: all drivers changed and compiled but only nvfx tested
| * r300g/swtcl: unlock VBO after draw_flushMarek Olšák2010-09-131-4/+1
| | | | | | | | | | https://bugs.freedesktop.org/show_bug.cgi?id=29901 https://bugs.freedesktop.org/show_bug.cgi?id=30132
| * r300g: fix SWTCLMarek Olšák2010-09-134-41/+99
| | | | | | | | https://bugs.freedesktop.org/show_bug.cgi?id=29901
| * r300g: print unassigned FS inputs for DBG_RSMarek Olšák2010-09-131-0/+9
| |
| * r300g: add new debug options for dumping scissor regs and disabling CBZB clearMarek Olšák2010-09-135-3/+16
| |
| * r300g: skip rendering if CS space validation failsMarek Olšák2010-09-133-52/+73
| | | | | | | | | | | | | | | | | | radeon_cs_space_check flushes the pipe context on failure, retries the validation, and returns -1 if it fails again. At that point, there is nothing we can do, so let's skip draw operations instead of getting stuck in an infinite loop. This code path ideally should never be hit.
| * r300g: remove u_upload_flush from r300_draw_arraysMarek Olšák2010-09-131-1/+0
| | | | | | | | | | This a leftover probably and is unnecessary, since we flush u_upload_mgr in r300_flush.
| * r300/compiler: Enable presubtract sourcesTom Stellard2010-09-102-0/+2
| | | | | | | | | | | | | | The r300 compiler can now emit instructions that select from the presubtract source. A peephole optimization has been added to convert instructions like: ADD Temp[0].x, none.1, -Temp[1].x into the INV (1 - src0) presubtract operation.
| * r300g,r300c: memset the compiler struct to zerosMarek Olšák2010-09-051-0/+1
| | | | | | | | This should fix bogus reports "Too many temporaries." and maybe some others.
| * Revert "r300g: refuse to create a texture with size 0"Marek Olšák2010-09-041-12/+0
| | | | | | | | | | | | | | | | | | | | This reverts commit 5cdedaaf295acae13ac10feeb3143d83bc53d314. https://bugs.freedesktop.org/show_bug.cgi?id=30002 Conflicts: src/gallium/drivers/r300/r300_texture.c
| * r300g: remove unnecessary assignmentsMarek Olšák2010-09-041-6/+0
| |
| * r300g: skip draw calls with no vertex elements, fixing hardlocksMarek Olšák2010-09-041-0/+3
| |
| * r300g: add a new debug option which disables compiler optimizationsMarek Olšák2010-09-044-18/+22
| | | | | | | | | | | | | | | | | | | | | | | | Those are: - dead-code elimination - constant folding - peephole (mainly copy propagation) - register allocation There are some bugs which I need to track down. Also fix up the descriptions of all the debug options.
| * r300/compiler: make optimizations not use 0.5 swizzles in vertex shadersMarek Olšák2010-09-042-0/+2
| |
| * r300/compiler: add new compiler parameter max_constantsMarek Olšák2010-09-042-0/+2
| |