Commit Graph

35159 Commits

Author SHA1 Message Date
Roland Scheidegger
c5cccf8a49 nvfx: adapt to clear interface changes 2010-05-29 01:24:25 +02:00
Roland Scheidegger
d1998962ef svga: adapt to clear interface changes
this should support separate stencil/depth clears just fine.
2010-05-29 01:22:23 +02:00
Roland Scheidegger
72c77d472b softpipe: adapt to clear interface changes 2010-05-29 01:21:15 +02:00
Roland Scheidegger
9d596ea492 rbug: adapt to clear interface changes 2010-05-29 01:20:11 +02:00
Roland Scheidegger
e4de4b0755 trace: adapt to clear interface changes 2010-05-29 01:19:59 +02:00
Roland Scheidegger
25296a3ed3 identity: adapt to clear interface changes 2010-05-29 01:19:48 +02:00
Roland Scheidegger
9eae3fd992 fo: adapt to clear interface changes 2010-05-29 01:19:24 +02:00
Roland Scheidegger
821498bd6f cell: adapt to clear interface changes 2010-05-29 01:18:47 +02:00
Roland Scheidegger
c350068720 st/python: adapt to clear interface changes 2010-05-29 01:18:17 +02:00
Roland Scheidegger
783083c3b8 st/mesa: use new ability to clear only depth or stencil 2010-05-29 00:04:14 +02:00
Roland Scheidegger
a1d5131d2e util: adapt to clear interface changes 2010-05-29 00:02:05 +02:00
Roland Scheidegger
0cd70b554c gallium: clear interface changes
clears were a bit limited in gallium:
- no scissoring (OGL only) nor explicit rectangle list (d3d9)
- no color/stencil masks (OGL only)
- no separate depth/stencil clears (d3d9/d3d10/OGL)
- cannot really clear single color buffer (only with resource_fill_region)

Additionally, d3d can clear surfaces not currently bound to the framebuffer.

It is, however, not easy to find some common ground what a clear should be able
to do, due to both API requirements and also hw differences (a case which might
be able to use a special clear path on one hw might need a "normal" quad render
on another).

Hence several clear methods are provided, and a driver should implement all of
them.
- clear: slightly modified to also be able to clear only depth or stencil in a
  combined depth/stencil surface. This is however optional based on driver
  capability though ideally it wouldn't be optional. AFAIK this is in fact
  something used by applications quite a bit.
  Otherwise, for now still doesn't allow clearing with scissors/mask (or single
  color buffers)
- clearRT: clears a single (potentially unbound) color surface. This was formerly
  roughly known as resource_fill_region. mesa st will not currently use this,
  though potentially would be useful for GL ClearBuffer.
- clearDS: similar to above except for depth stencil surfaces.

Note that clearDS/clearRT currently handle can handle partial clear. This might
change however.
2010-05-28 23:57:47 +02:00
Eric Anholt
828f648ac3 i965: Add cache unit -> bo name mapping for more gen6 state objects.
This will help in bufmgr debugging and aub dumping.
2010-05-28 12:51:48 -07:00
Zou Nan hai
9390af0d96 i965: fix PIPE_CONTROL command for gen6.
Signed-off-by: Zou Nan hai <nanhai.zou@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
2010-05-28 12:51:48 -07:00
Brian Paul
e6d8b4090f llvmpipe: add PIPE_BUFFER to assertion
Fixes regression from commit f2e05acac9.
2010-05-28 13:31:23 -06:00
Brian Paul
f57edc58b5 softpipe: add PIPE_BUFFER to assertion
Fixes regression from commit f2e05acac9.
2010-05-28 13:30:24 -06:00
Brian Paul
151b3bb3af llvmpipe: add out of memory checking to triangle setup path 2010-05-28 12:52:41 -06:00
Brian Paul
5d0e136eff glsl: change uniform location/offset encoding
This lets Mesa work like other OpenGL implementations with regard
to indexing uniform arrays.  See comments for details.

Note: this is a candidate for the 7.8 branch.
2010-05-28 12:52:34 -06:00
Marek Olšák
f4bcd0cab0 r300g: remove unnecessary breaks 2010-05-28 03:30:11 +02:00
Marek Olšák
ebe2b54663 r300g: report vertex format support in is_format_supported 2010-05-28 03:30:11 +02:00
Marek Olšák
f2e05acac9 st/mesa: advertise ARB_half_float_vertex when available
Both softpipe and llvmpipe pass the piglit half float test.
2010-05-28 03:30:11 +02:00
Marek Olšák
3262554bb3 r300g/swtcl: fix WPOS
There you are! r300->viewport_state is undefined when using SW TCL.

Piglit score (r300g.tests):
HW TCL: 231/275
SW TCL: 233/275
2010-05-28 03:30:11 +02:00
Marek Olšák
49244df5a8 r300g/swtcl: avoid an infinite loop if an occl. query doesn't return anything 2010-05-28 03:30:11 +02:00
Jerome Glisse
6a143b8424 r600g: disable rendering
Disable rendering to avoid GPU lockup.
Use radeondb to debug shader compiler :
radeondb -c gallium.bof
radeondb -s gallium.json
Will print shader generated, best is to use fp demos to test
the compiler.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-05-27 23:24:26 +02:00
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
Brian Paul
a504f2387e mesa: fix incorrect GL_DEPTH_STENCIL_ATTACHMENT format check
We want to check the incoming renderbuffer format, not the (potentially
non-existant) current attachment.

Fixes segfault w/ fbotexture -ds2.

NOTE: this will be applied to the 7.8 branch too.
2010-05-27 13:11:08 -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
Brian Paul
df64122c30 fbdev: some hacking to get the driver to compile (untested) 2010-05-27 09:46:32 -06:00
Brian Paul
a4bd52adba update linux-fbdev config 2010-05-27 09:46:21 -06:00
Brian Paul
3644dbbdbd vbo: comments and whitespace 2010-05-27 09:40:33 -06:00
Brian Paul
4225c4e1b0 vbo: remove unused prototype 2010-05-27 09:40:33 -06:00
Brian Paul
9aae67ca3a vbo: remove dead code 2010-05-27 09:40:33 -06:00
Brian Paul
b6187057be vbo: update/add comments 2010-05-27 09:40:33 -06:00
Vinson Lee
f49a65628f mesa: Remove unnecessary headers. 2010-05-27 08:10:31 -07:00
Kristian Høgsberg
6e9da8ab60 egl: Return NULL if we fail to load a default driver 2010-05-27 09:59:27 -04:00
Brian Paul
7d7bdee50d mesa: remove unused includes 2010-05-26 22:42:13 -06:00
Brian Paul
eb88c02a4b mesa: rewrite _mesa_get_handle() and add some comments 2010-05-26 22:40:38 -06:00