summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_state.c
AgeCommit message (Collapse)Author
2010-03-20r300g: Correctly hax max_index on pipe_vertex_buffers.Corbin Simpson
Still not happy with this, but at least things seem to work.
2010-03-19r300g: fix breakage after the gallium-sampler-view mergeMarek Olšák
2010-03-19r300g: add generating texture coordinates for point sprites (WIP)Marek Olšák
2010-03-15r300g: fix up after mergeKeith Whitwell
2010-03-15Merge commit 'origin/master' into gallium-sampler-viewKeith Whitwell
Conflicts: src/gallium/drivers/nv30/nv30_context.h src/gallium/drivers/nv30/nv30_state.c src/gallium/drivers/nv40/nv40_context.h src/gallium/drivers/nv40/nv40_state.c src/gallium/drivers/r300/r300_emit.c
2010-03-15r300g: rebuild screen/winsys interfaceDave Airlie
This creates a cleaner winsys and drop the simple screen stuff. It makes r300g use pb_bufmgr structs. It also tries to avoid overheads from mapping too often. v5: clean warnings v6: break out of cache check on first buffer - since most likely the first busy one implies all after it are busy. v7: cleanup a bit v8-merged: drop cman for now to just get all the interface changes in first. rework to changes that happened upstream Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-03-13r300g: add high quality anisotropic filtering for R5xx (disabled by default)Marek Olšák
Oh look, an undocumented feature. It's a nice tool for benchmarking texturing.
2010-03-13r300g: fix anisotropic filtering, fix macrotilingMarek Olšák
Two bug fixes at the same time. :)
2010-03-13Merge commit 'origin/master' into gallium-sampler-viewKeith Whitwell
Conflicts: src/gallium/auxiliary/util/u_tile.c src/gallium/auxiliary/util/u_tile.h src/gallium/drivers/identity/id_context.c src/gallium/drivers/llvmpipe/lp_setup.c src/gallium/drivers/llvmpipe/lp_setup.h src/gallium/drivers/softpipe/sp_tex_tile_cache.c src/gallium/include/pipe/p_context.h src/mesa/state_tracker/st_cb_bitmap.c src/mesa/state_tracker/st_cb_drawpixels.c
2010-03-12r300g: Properly clamp index limits.Corbin Simpson
Make the kernel even less likely to barf on us.
2010-03-11gallium: Check for OOM condition when creating a sampler view.Michal Krol
2010-03-10Merge branch 'master' into gallium-sampler-viewMichal Krol
Conflicts: src/gallium/auxiliary/Makefile src/gallium/auxiliary/SConscript src/gallium/auxiliary/tgsi/tgsi_exec.c src/gallium/auxiliary/util/u_blitter.c src/gallium/drivers/i915/i915_context.h src/gallium/drivers/i965/brw_context.h src/gallium/drivers/llvmpipe/lp_context.h src/gallium/drivers/nv50/nv50_context.h src/gallium/drivers/nv50/nv50_state_validate.c src/gallium/drivers/nv50/nv50_tex.c src/gallium/drivers/r300/r300_blit.c src/gallium/drivers/r300/r300_context.h src/gallium/drivers/r300/r300_emit.c src/gallium/drivers/r300/r300_state.c src/gallium/drivers/softpipe/sp_context.h src/gallium/drivers/svga/svga_context.h src/gallium/drivers/svga/svga_pipe_sampler.c
2010-03-09r300g: Precalculate and CSO-bind PSC state.Corbin Simpson
2010-03-09Merge branch 'gallium-vertexelementcso'Roland Scheidegger
Conflicts: src/gallium/auxiliary/cso_cache/cso_context.c src/gallium/auxiliary/util/u_blit.c src/gallium/auxiliary/util/u_gen_mipmap.c src/gallium/drivers/i915/i915_context.h src/gallium/drivers/i965/brw_draw_upload.c src/gallium/drivers/r300/r300_blit.c src/gallium/drivers/r300/r300_context.h src/gallium/drivers/r300/r300_render.c src/gallium/drivers/r300/r300_state_derived.c src/mesa/state_tracker/st_cb_bitmap.c src/mesa/state_tracker/st_cb_clear.c
2010-03-08r300g: fix updating the tiling flags for the framebuffer stateMarek Olšák
2010-03-08r300g: remove unnecessary state emissions and clean upMarek Olšák
2010-03-07r300g: disable emitting the HWTCL-related state when SWTCL is in useMarek Olšák
Now SWTCL renders at least "something", we're close...
2010-03-07r300g: share the VS-output-mapping state with SWTCLMarek Olšák
And associated cleanups.
2010-03-06r300g: minor cleanups after the no-rhw mergeMarek Olšák
2010-03-02r300g: Use a macro to consolidate general state handling.Corbin Simpson
My God, I've reinvented R300_STATECHANGE. Forgive me. :C
2010-03-02r300g: Make velem CSO actually work.Corbin Simpson
glxgears runs again.
2010-03-02Merge branch 'gallium-format-cleanup'José Fonseca
2010-03-02Merge branch 'gallium-no-rhw-position'Michal Krol
Conflicts: src/gallium/drivers/r300/r300_blit.c src/gallium/drivers/r300/r300_emit.c src/gallium/drivers/r300/r300_state_derived.c
2010-03-02r300: Rename pipe formats.José Fonseca
2010-03-01r300g: adapt to new vertex element csoRoland Scheidegger
2010-03-01r300: Save viewport and clip states before invoking blitter.Michal Krol
2010-02-28r300g: atomize texture and sampler statesMarek Olšák
2010-02-28r300g: decouple vertex stream setup (PSC) and VS output mapping (VAP_OUT)Marek Olšák
Formerly known as vertex_format_state. These two are completely unrelated when using HWTCL and decoupling them makes the design less SWTCL-centric. When bypass_vs_clip_and_viewport gets removed, the PSC setup will no longer be a derived state. This change shouldn't make unbreaking SWTCL harder.
2010-02-28r300g: use the atom size directly during emissionMarek Olšák
2010-02-28r300g: atomize invalidation of texture cachesMarek Olšák
2010-02-28r300g: atomize PVS flushMarek Olšák
The first non-state atom. It's better and cleaner to have it.
2010-02-27r300g: move the emission of GA_POINT_MINMAX into emit_fb_stateMarek Olšák
The only practical limits are the ones derived from the currently-set framebuffer state.
2010-02-27r300g: put the emission of R300_US_OUT_FMT_UNUSED backMarek Olšák
It wasn't such a good idea to remove it. :/
2010-02-27r300g: mark rasterizer_state as dirty only when it's not NULLMarek Olšák
2010-02-27r300g: always emit the correct max vertex index to avoid DRM errorsMarek Olšák
Fixing bizarre reports that a vertex buffer is not large enough.
2010-02-24r300g: Atomize vertex shader.Corbin Simpson
2010-02-22gallium: Remove bypass_vs_clip_and_viewport from rasteriser state.Michal Krol
Needs testing.
2010-02-22Revert "r300g: rebuild winsys/pipe buffer handling and add buffer map"Dave Airlie
This reverts commit fff5be8e7b4557c221f2425dcafc2e7cbbba76ba. Probably went too soon with this, dileX reported OA not working for him it works here fine, but the optimisations I wanted aren't working properly yet so I'll fix that now. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-02-22r300g: rebuild winsys/pipe buffer handling and add buffer mapDave Airlie
This creates a cleaner winsys and drop the simple screen stuff. It makes r300g use pb_bufmgr structs and adds usage of the cached bufmgr for vertex/index buffers. It also avoids mapping too often. I'm not 100% sure this is perfect but it won't find its own bugs. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-02-15r300g: fix the size of constant buffersMarek Olšák
4 more piglit tests pass, sweet.
2010-02-14r300g: set the correct tiling flags for renderbuffersMarek Olšák
MACRO_SWITCH is applied to samplers but not renderbuffers. This commit fixes incorrect rendering to large and small mipmaps where the large ones are macrotiled and the small ones are not and both are emitted in the same CS. Note that this is still disabled by default (rework of texture transfers is next).
2010-02-13r300g: cleanup the emission of framebuffer stateMarek Olšák
Some emits are not needed anymore.
2010-02-12Merge branch 'gallium-dynamicstencilref'Roland Scheidegger
2010-02-12gallium: make max_anisotropy a unsigned bitfield memberRoland Scheidegger
saves us a dword in sampler state, hw can't do non-integer aniso degree anyway. To allow aniso 1x (which seems of dubious value but some hardware (radeons) have such a mode, and even d3d allows specifiying it) redefine anisotropic filtering as disabled only if max_anistropy is 0.
2010-02-11r300g: adapt to stencil ref changesRoland Scheidegger
2010-02-10r300g: Fix typo.Corbin Simpson
Thanks to Uros Bizjak for catching it.
2010-02-09r300g: Correct colorbuffer measurements.Corbin Simpson
Also clarify changes from pointminmax.
2010-02-09Merge branch 'gallium-nopointsizeminmax'Roland Scheidegger
Conflicts: src/gallium/drivers/nv10/nv10_state.c src/gallium/drivers/nv20/nv20_state.c src/gallium/drivers/nv50/nv50_program.c
2010-02-06r300g: cleanup XXXs in the DSA stateMarek Olšák
2010-02-06r300g: make a local copy of framebuffer stateMarek Olšák
The previous more direct approach was simply incorrect. piglit/levelclamp passes again.