summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300
Commit message (Collapse)AuthorAgeFilesLines
* r300g: fix warning in winsysMarek Olšák2010-08-301-0/+1
|
* r300g,u_blitter: use u_framebufferMarek Olšák2010-08-292-3/+3
| | | | Removing another function duplication in u_blitter.
* r300g: fix blitting between 2D NPOT mipmapsMarek Olšák2010-08-284-23/+51
| | | | | | | | | Even though MIP filtering is not supported, we can bind an arbitrary mipmap as the zero mipmap level. NPOT textures now follow GL_TEXTURE_BASE_LEVEL and GL_TEXTURE_MIN_LOD. This fixes piglit/fbo-copyteximage.
* r300g: fix min/max lod computationMathias Fröhlich2010-08-281-2/+2
|
* r300g: set the correct value in PVS_NUM_CNTLRSMarek Olšák2010-08-281-1/+1
| | | | As per docs.
* r300g: Include missing header in r300_texture.h.Vinson Lee2010-08-271-0/+1
| | | | Include p_compiler.h for uint32_t and boolean symbols.
* r300g: Include missing header in r300_texture_desc.h.Vinson Lee2010-08-261-0/+1
| | | | | | Include p_format.h for enum pipe_format symbol. Fixes r300g build.
* r300g: fix constant buffer upload once again for r3xx->r4xxMarek Olšák2010-08-261-1/+1
|
* r300g: fix potentially uninitialized variables in create_rs_stateMarek Olšák2010-08-251-5/+2
| | | | | | It had no impact on correctness, though. Reported by Vinson Lee.
* draw: specialized cliptesting routinesKeith Whitwell2010-08-251-2/+0
|
* gallium: Use draw_set_index_buffer and others.Chia-I Wu2010-08-252-12/+9
| | | | | | Update all drivers to use draw_set_index_buffer, draw_set_mapped_index_buffer, and draw_vbo. Remove draw_set_mapped_element_buffer and draw_set_mapped_element_buffer_range.
* r300g: fix gl_PointCoordMarek Olšák2010-08-251-2/+7
| | | | | Is this hackish or is this the correct way to use point_quad_rasterization? Copied from nvfx.
* r300g: eliminate unused constants in FSMarek Olšák2010-08-253-7/+32
|
* r300g: eliminate unused constants in VSMarek Olšák2010-08-255-8/+31
|
* r300g: clean up some mess in set_constant_bufferMarek Olšák2010-08-252-22/+1
|
* r300g: fix indentationMarek Olšák2010-08-252-8/+8
|
* r300g: reset the index bias to 0 at the end of CSMarek Olšák2010-08-254-5/+12
|
* r300g: Remove unused variable.Vinson Lee2010-08-231-2/+0
| | | | | | Fixes this GCC warning. r300_render.c: In function 'r300_draw_flush_vbuf': r300_render.c:988: warning: unused variable 'r300_render'
* r300g: avoid stall in no-tcl drawing when mapping vboDave Airlie2010-08-233-15/+26
| | | | | | | | | the current code reuses the same vbo over and over, however after a flush we'd stall and wait for mapping on the vbo when we should just fire and forget. On a gears test this brings me from ~620 to ~750 on my rv530 in swtcl mode. Signed-off-by: Dave Airlie <[email protected]>
* gallium: make all checks for PIPE_TEXTURE_2D check for PIPE_TEXTURE_RECT tooLuca Barbieri2010-08-203-5/+10
| | | | | | | Searched for them with: git grep -E '[!=]=.*PIPE_TEXTURE_2D|PIPE_TEXTURE_2D.*[!=]=|case.*PIPE_TEXTURE_2D' Behavior hasn't been changed.
* r300g: do not use fastfill with 16-bit zbuffersMarek Olšák2010-08-191-0/+4
| | | | | | | To my knowledge, there is no way to flush zmask and thus write the clear value. This fixes zbuffer reads, among other things.
* r300g: fix context destroy under hyperzDave Airlie2010-08-171-3/+3
| | | | | | we were destroying the mm before unrefing all the objects, so segfault. Signed-off-by: Dave Airlie <[email protected]>
* r300g: fix assert in the rasterizer block for r3xx-r4xxMarek Olšák2010-08-161-1/+1
| | | | Reported-by: Niels Ole Salscheider <[email protected]>
* r300g: fix an invalid pointer in freeMarek Olšák2010-08-161-1/+1
|
* r300g: Let hyperz init failnobled2010-08-163-6/+20
| | | | Signed-off-by: Marek Olšák <[email protected]>
* r300g: Fix leaks in failed context creationnobled2010-08-161-34/+48
| | | | | | | | | | | This changes r300_destroy_context() so it can be called on a partially-initialized context, and uses it when r300_create_context() hits a fatal error. This makes sure r300_create_context() doesn't leak memory or neglect to call r300_update_num_contexts() when it fails. Signed-off-by: Marek Olšák <[email protected]>
* r300g: Fix macronobled2010-08-161-1/+3
| | | | | | | This fixes a potential bug if (has_hyperz) is false (it would still init the atom as if has_hyperz were true). Signed-off-by: Marek Olšák <[email protected]>
* r300/compiler: implement DP2 opcodeMarek Olšák2010-08-161-1/+1
|
* r300/compiler: implement SSG opcodeMarek Olšák2010-08-161-1/+1
|
* r300g: mark HiZ/ZMask_clear atoms as non-dirty after emission in clearMarek Olšák2010-08-151-1/+4
|
* r300g: do not use HiZ if HiZ RAM is not properly initializedMarek Olšák2010-08-155-18/+23
|
* r300g: rename dirty_zmask -> zmask_in_useMarek Olšák2010-08-155-13/+13
|
* r300g: do not clear with blitter if we clear just the ZMask RAMMarek Olšák2010-08-151-9/+37
| | | | | This skips the blitter clear path entirely if the color is not cleared and the depth+stencil is cleared with the ZMask.
* r300g: do not use fastfill if ZMask RAM is not properly initializedMarek Olšák2010-08-154-18/+31
| | | | z_fastfill -> dirty_zmask[level].
* r300g: separate num_cs_end_dwords out from prepare_for_renderingMarek Olšák2010-08-153-24/+25
|
* r300g: do not support separate depth/stencil clear in the driverMarek Olšák2010-08-131-3/+1
| | | | It doesn't work well with Hyper-Z, so put the burden on the state tracker.
* r300g: fix fastfill when color and Z clear are invoked separatelyMarek Olšák2010-08-132-2/+2
| | | | This always restores the previous depth clear value after CBZB clear.
* r300g: disable depth clamp for nowMarek Olšák2010-08-131-1/+1
| | | | | | | It breaks Regnum Online in that it renders random triangles all over the screen. https://bugs.freedesktop.org/show_bug.cgi?id=29518
* Revert "u_blitter: unify clear_depth_stencil and flush_depth_stencil"Marek Olšák2010-08-121-3/+1
| | | | This reverts commit de4784e36505316c2a5ab34cc5b371d17f38d3c5.
* u_blitter: unify clear_depth_stencil and flush_depth_stencilMarek Olšák2010-08-121-1/+3
| | | | No need to enable depth test for clear.
* r300/compiler: Implement the CONT opcode.Tom Stellard2010-08-111-1/+1
|
* r300g: initialize VAP_VTX_STATE_CNTLMarek Olšák2010-08-111-0/+5
| | | | This got lost during the rasterizer rewrite.
* r300g: implement gl_FrontFacingMarek Olšák2010-08-113-7/+53
|
* r300g: Remove unnecessary header.Vinson Lee2010-08-101-1/+0
|
* r300/compiler: Implement hardware assisted loops for vertex shaders.Tom Stellard2010-08-103-1/+40
| | | | Single loops work, but nested loops do not.
* r300g: do not print shader compiler errors by defaultMarek Olšák2010-08-092-5/+4
|
* r300g: fix hiz/zmask offset emissions.Dave Airlie2010-08-091-2/+2
| | | | | | ofs is in dwords, so need to shift it for registers. Signed-off-by: Dave Airlie <[email protected]>
* r300g: remove a flushMarek Olšák2010-08-081-1/+0
| | | | Ooops, it wasn't supposed to be there.
* r300g: flush zmasks of zbuffers we are going to use as samplersMarek Olšák2010-08-084-7/+58
| | | | It sometimes works, sometimes not. I guess we have the zmask offsets wrong.
* r300g: do not allocate a zmask block for 3D textures and cubemapsMarek Olšák2010-08-081-0/+6
|