Commit graph

9137 commits

Author SHA1 Message Date
Bas Nieuwenhuizen
9e8a6f801d r600g: various fixes
- enabled flushing a buffer more than once
- enabled the blitter for r600_clear
- added some more colors to r600_is_format_supported (copied from r600_conv_pipe_format)
- r600_set_framebuffer_state now sets rctx->fb_state
- more states are saved before a blit (had to add some accounting for the viewport and the vertex elements state)
- fixed a few errors with reference counting
2010-05-27 23:24:22 +02:00
Jerome Glisse
e68b4e5053 r600g: fix driver + shader compiler backend change
Change the way we translate from c_compiler to the
asic specific representation. Should make things
simpler.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-05-27 23:24:17 +02:00
Jakob Bornecrantz
aeee52691c r600g: Integrate into build
Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
2010-05-27 23:24:12 +02:00
Jakob Bornecrantz
9abfc5ef60 r600g: Fix buffer offsets
Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
2010-05-27 23:24:07 +02:00
Marek Olšák
b8fb1d75ce r600g: adapt to latest interfaces changes
- Wrapped the buffer and texture create/destroy/transfer/... functions
  using u_resource, which is then used to implement the resource functions.
- Implemented texture transfers.
  I left the buffer and texture transfers separate because one day we'll
  need a special codepath for textures.
- Added index_bias to the draw_*elements functions.
- Removed nonexistent *REP and *FOR instructions.
- Some pipe formats have changed channel ordering, so I've removed/fixed
  nonexistent ones.
- Added stubs for create/set/destroy sampler views.
- Added a naive implementation of vertex elements state (new CSO).
- Reworked {texture,buffer}_{from,to}_handle.
- Reorganized winsys files, removed dri,egl,python directories.
- Added a new build target dri-r600.
2010-05-27 23:24:02 +02:00
Jerome Glisse
72128962d6 r600g: Initial import 2010-05-27 23:23:56 +02:00
Brian Paul
3d41dd7934 llvmpipe: s/bool/boolean/ 2010-05-27 14:55:58 -06:00
Brian Paul
bd024ce2b1 llvmpipe: s/bool/boolean 2010-05-27 14:54:21 -06:00
Brian Paul
0faefb194e sw/xlib: avoid dereferencing a null pointer 2010-05-27 13:40:16 -06:00
Brian Paul
c3b62bc86c gallivm: add assertions to check type of phi variables 2010-05-27 13:40:16 -06:00
Marek Olšák
90e5a37d12 r300g/swtcl: fix secondary color and back-face color outputs
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-27 20:56:32 +02:00
José Fonseca
8bd3a4c1aa llvmpipe: Refer to my personal udis86 repository.
As it has a bunch of fixes/additions not merged by upstream yet.
2010-05-27 19:40:10 +01:00
José Fonseca
571ee049f2 util: Also add a define for the dynamic library's prefix. 2010-05-27 19:37:56 +01:00
Brian Paul
057f7e8140 egl/mks: remove extra param from function call 2010-05-27 12:04:43 -06:00
Brian Paul
462bccef4f egl_g3d: add missing param to egl_g3d_st_manager_get_egl_image() 2010-05-27 12:04:08 -06:00
Marek Olšák
76034aaf65 r300g: decouple drawing code and two-sided stencil refvalue fallback
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-27 00:08:42 +02:00
Marek Olšák
1345c5bf94 r300g/swtcl: handle large index count properly
This fixes piglit/draw-elements.
2010-05-26 22:39:19 +02:00
Marek Olšák
3a6fd21917 r300g/swtcl: force vertex prefetching for non-indexed primitives 2010-05-26 22:22:52 +02:00
Marek Olšák
55a6d37434 r300g/swtcl: move emitting AOS to prepare_for_rendering 2010-05-26 22:22:52 +02:00
Marek Olšák
500160a3c9 r300g/swtcl: vbo transfer sanity checks 2010-05-26 22:22:52 +02:00
Marek Olšák
a81730cb32 r300g: add get_cs_info winsys entrypoint, abandon check_cs 2010-05-26 22:22:52 +02:00
Marek Olšák
6ca3f86bdc r300g/swtcl: do not use u_upload_mgr and do not compute max_index 2010-05-26 22:22:52 +02:00
Marek Olšák
bbfd785259 r300g: remove unnecessary includes 2010-05-26 22:22:52 +02:00
Vinson Lee
80689ae615 gallivm: Remove unnecessary headers. 2010-05-26 11:13:23 -07:00
Vinson Lee
2966a25d3b st/xorg: Remove unnecessary headers. 2010-05-26 10:59:57 -07:00
Vinson Lee
3fa8a8ea28 util: Remove unnecessary headers. 2010-05-26 10:53:54 -07:00
Vinson Lee
67d5a51021 st/dri: Remove dri.c from SCons build.
This was missed in commit f501230db3.
Fixes SCons build.
2010-05-26 10:24:36 -07:00
Marek Olšák
1bdbc0e38f r300g: fix fence referencing 2010-05-26 16:39:32 +02:00
Marek Olšák
5c067a6304 r300/compiler: move hardware caps to the radeon_compiler base struct
Needed for vertex shaders too.
2010-05-26 04:47:26 +02:00
Dave Airlie
15496e06b7 rbug: add set sample mask passthrough.
This at least stops rbug segfaulting at startup.

Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-05-26 11:45:32 +10:00
Marek Olšák
e6a8513a86 r300g: more efficient finish + fix comments 2010-05-26 01:41:32 +02:00
Marek Olšák
2c072c8f72 r300g: implement fake but compliant fences 2010-05-26 01:23:11 +02:00
Marek Olšák
e1c117d87b r300g: add r300_init_render_functions, remove r300_render.h 2010-05-25 23:32:25 +02:00
Marek Olšák
73ee4e7eb2 r300g: remove r300_query.h 2010-05-25 23:32:25 +02:00
Marek Olšák
d1dac36004 r300g: remove r300_flush.h 2010-05-25 23:32:25 +02:00
Marek Olšák
85eede1b2f r300g: add r300_init_blit_functions, remove r300_blit.h 2010-05-25 23:32:25 +02:00
Marek Olšák
4d70a25964 util: update comments at blitter 2010-05-25 23:32:25 +02:00
Marek Olšák
16d1fb30a9 util: fix indentation in blitter 2010-05-25 23:32:25 +02:00
Marek Olšák
876de34c91 r300g,util: remove pipe_surface from the util_blitter_copy interface and clean up 2010-05-25 23:32:25 +02:00
Marek Olšák
59e51d9640 r300g,util: remove pipe_surface from the util_blitter_fill interface and clean up 2010-05-25 23:32:25 +02:00
Marek Olšák
85c55f2cf4 util: remove unused util_blitter_copy_surface 2010-05-25 23:32:25 +02:00
Jakob Bornecrantz
b9706886db drm_api: Remove type argument from create screen callback
With the removal of DRI1 support there where no use of this argument,
some drivers didn't even properly check it.
2010-05-25 19:05:07 +01:00
Jakob Bornecrantz
395b605e19 gallium: Remove dri1_api.h and winsys support for DRI1
Since DRI1 support was dropped from st/dri it
makes no sense to keep this code around.
2010-05-25 19:04:11 +01:00
Jakob Bornecrantz
f501230db3 st/dri: Remove DRI1 support
Nobody used it and the current code had been trough so many
changes yet never once being tested.
2010-05-25 19:03:19 +01:00
José Fonseca
378796fe11 llvmpipe: Stop relying on PIPE_FLUSH_TEXTURE_CACHE/PIPE_FLUSH_RENDER_CACHE magic.
Flush means flush, i.e., all previous operations should be visible from
other contexts.

This does not imply unswizzling tiles, since unswizzling should be done on
a needed basis for any context.
2010-05-25 14:39:25 +01:00
José Fonseca
ba404c8f2a gallivm: Choose an appropriate code generation optimization level.
'Default' unless GALLIVM_DEBUG=nopt option is set.
2010-05-25 11:48:00 +01:00
Brian Paul
e5d0c730d1 sw/xlib: NULL-out pointers after freeing image data
This fixes a double-free() error when not using a shared memory XImage.
The XDestroyImage() function frees the ximage->data buffer if non-NULL.
If we free it ourselves, we also need to NULL-out the pointer.
2010-05-24 16:21:55 -06:00
Brian Paul
8cbc1517c1 st/glx: check if deleting head of buffer list 2010-05-24 16:21:55 -06:00
José Fonseca
6460ba5eeb llvmpipe: Also test compressed formats in lp_test_format() 2010-05-24 16:41:28 +01:00
José Fonseca
f7b57245cc llvmpipe: Fix lp_test_format on 32bit OSes. 2010-05-24 16:38:09 +01:00