summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_state.c
AgeCommit message (Collapse)Author
2010-06-13r300g: turn depth stencil state into a CBMarek Olšák
2010-06-13r300g: turn clip state into a CBMarek Olšák
2010-06-13r300g: turn blend color into a CBMarek Olšák
2010-06-13r300g: turn blend state into a CBMarek Olšák
2010-06-13r300g: remove r300_state.hMarek Olšák
2010-06-13r300g: add fallback for unaligned/unsupported vertex stride/offset/formatMarek Olšák
There is a problem though, the translate module cannot emit half float vertices.
2010-06-08r300g: skip rendering for unsupported vertex formats instead of abortingMarek Olšák
The next step is to replace skipping by an actual fallback.
2010-05-31r300g: set correct pitch in libdrmMarek Olšák
to match what DDX sets. This prevents some flushes from occuring.
2010-05-28r300g: report vertex format support in is_format_supportedMarek Olšák
2010-05-27r300g/swtcl: fix secondary color and back-face color outputsMarek Olšák
These piglit tests have been fixed: - bgra-sec-color-pointer - glsl-routing See comments at the beginning of r300_vs_draw.c WPOS is implemented too but it doesn't work yet. I'm still working on it.
2010-05-27r300g: decouple drawing code and two-sided stencil refvalue fallbackMarek Olšák
It's now more separate from the rest of the driver and it can be disabled by commenting out just 1 line. Well, I couldn't make the previous version work with SW TCL reliably, that's the reason of this little rework.
2010-05-26r300g/swtcl: do not use u_upload_mgr and do not compute max_indexMarek Olšák
2010-05-21Merge branch 'gallium-msaa'Roland Scheidegger
Conflicts: src/mesa/state_tracker/st_gen_mipmap.c src/mesa/state_tracker/st_texture.c
2010-05-21Merge branch 'gallium-front-ccw'Keith Whitwell
2010-05-18gallium: implement set_sample_mask() in all driversRoland Scheidegger
prevents segfault when state trackers try to set default mask. Other option would be to make this required only for drivers supporting multisampling, but this seems more clean. Only dummy implementations (for normal drivers) provided (no driver supports multisampling yet neither).
2010-05-14gallium: more work on ccw flag removalKeith Whitwell
The linux-debug target builds...
2010-05-14gallium: convert rasterizer state to use gl-style front/back conceptsKeith Whitwell
Use front/back instead of cw/ccw throughout. Also, use offset_point/line/fill instead of offset_cw/ccw. Brings gallium representation of this state into line with its main user, and also what turns out to be the most common hardware representation. This fixes a long-standing bias in the interface towards the architecture of the software rasterizer.
2010-05-12r300g: Correct viewport setup for SW TCL.Corbin Simpson
glxgears now renders in the right place on-screen, although it is still rather...psychedelic.
2010-05-08r300g: follow pipe_rasterizer_state::light_twosideMarek Olšák
2010-05-08r300g: follow pipe_rasterizer_state::point_size_per_vertexMarek Olšák
2010-05-08r300g: move GA_POINT_MINMAX back to rs_stateMarek Olšák
This basically reverts commit 74f94e8fdfe035fa68acdc19e6b0afc2957a4264.
2010-05-08r300g: fix glean/pointSprite using lodbias correctionMarek Olšák
2010-05-08r300g: pass depth texture swizzle to the compiler if compare mode is enabledMarek Olšák
2010-05-03r300g: use util_format_short_name and util_format_is_plainMarek Olšák
2010-05-02r300g: always set the pitch of the first miplevel in the tiling flagsMarek Olšák
This further reduces the number of DRM calls and flushes.
2010-05-02Revert "r300g: disable point sprites (again)"Marek Olšák
This reverts commit 3e0f1719d411b34f77fd2a053ecf83b43bb836ca.
2010-05-02r300g: merge VS output mapping state (VAP) to rasterizer block state (RS)Marek Olšák
These two should be tied together because what's set in VAP or stuffed in GA should be rasterized in RS. Not doing so causes a hardlock. The reason for the merge is that if stuffed texture coordinates (e.g. point sprite texgen) happen to occupy the texcoord slot dedicated to fog or wpos, the two must be relocated to other free slots, which needs remapping the vertex shader outputs. The rasterizer code is now literally a sequence read-rasterize-write.
2010-05-02r300g: fix segfault when resizing a DRI2 framebufferMarek Olšák
Resetting tiling flags might happen after a texture is destroyed... Looking at the kernel sources, we don't actually need to reset the tiling flags.
2010-05-16r300g/swtcl: fix point sprite texgen (do it in HW)Marek Olšák
2010-05-15r300g: fix psychedelic colors with SWTCLMarek Olšák
r300_vertex_shader::outputs was uninitialized. Also remove the tokens parameter.
2010-05-15r300g: the vertex_stream_state atom for SWTCL should be staticMarek Olšák
plus whitespace and comment fixes.
2010-05-14r300g: do not abort if a constant buffer is too largeMarek Olšák
What else can we do with misbehaving apps?
2010-05-14r300g: add framebuffer state debug loggingMarek Olšák
2010-04-29r300g: compose swizzles from texture formats and sampler viewsMarek Olšák
2010-04-27r300g: add support for more unaligned vertex formatsMarek Olšák
An aligned stride is still needed for it to work. I am slowly approaching the Sauerbraten milestone!
2010-04-27r300g: setup PSC first, then align vertex formatsMarek Olšák
This allows us to put correct swizzles for undefined components in PSC.
2010-04-26r300g: disable point sprites (again)Marek Olšák
They cause lockups. The users doesn't seem to like them.
2010-04-26r300g: allow unaligned vertex formats if the stride is dword-alignedMarek Olšák
2010-04-19Merge branch '7.8'Brian Paul
Conflicts: src/gallium/auxiliary/draw/draw_context.c src/gallium/auxiliary/draw/draw_pipe_aaline.c src/gallium/drivers/llvmpipe/lp_context.c
2010-04-19gallium/draw: use correct rasterization state for wide/AA points/linesBrian Paul
When points or lines are decomposed into triangles, we need to be sure to disable polygon culling, stippling, "un-filled" modes, etc. This patch sets the rasterization state to disable those things prior to drawing points/lines with triangles, then restores the previous state afterward. The new piglit point-no-line-cull test checks this problem & solution.
2010-04-18r300g: fixup 0 stride buffer properly.Dave Airlie
Just set the max index to 1, this lets doom3 run and seems correct, though it would be better to just emit a constant like SVGA does. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-04-15r300g: pick a new fragment shader when either a sampler state or view is changedMarek Olšák
2010-04-14r300g: atomize VS constant bufferMarek Olšák
2010-04-14r300g: emit VS immediates along with VS codeMarek Olšák
2010-04-13r300g: Silence uninitialized variable warning.Vinson Lee
2010-04-13r300g: add generating texture coordinates for point spritesMarek Olšák
[airlied - Convert sprite coord index to a per-coord enable bit set the rasteriser block up correctly for point sprites. The inputs to the RS hw block change for sprite coords, so fix them up properly - this fixes piglit point-sprite test. ] Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-04-12r300g: atomize FS constant bufferMarek Olšák
2010-04-12r300g: atomize compiler's state variables for fragment shaderMarek Olšák
2010-04-12r300g: atomize fragment shaderMarek Olšák
2010-04-12r300g: remove a false commentMarek Olšák