Commit graph

330 commits

Author SHA1 Message Date
Michel Dänzer
47e41b024e gallium: Preparations for adding more PIPE_TRANSFER_* usage flags.
Always test for PIPE_TRANSFER_READ/WRITE using the bit-wise and operator, and
add a pipe_transfer_buffer_flags() helper for getting the buffer usage flags
corresponding to them.
2009-10-02 18:13:26 +02:00
Robert Noland
0b466c8705 util: Enable sockets on BSD
I think this should be safe for all of the BSDs.

Signed-off-by: Robert Noland <rnoland@2hip.net>
Signed-off-by: Brian Paul <brianp@vmware.com>
2009-10-01 08:42:48 -06:00
Brian Paul
6be2bc56af gallium/trace: casts to silence warnings 2009-09-24 10:47:42 -06:00
Keith Whitwell
90dcfb3b47 trace: fix printf warnings 2009-09-24 16:49:40 +01:00
Jakob Bornecrantz
8c3f622a34 trace: Don't set surface_[fill|copy] if not set on pipe 2009-09-01 11:56:14 +02:00
Jakob Bornecrantz
1e5014f7df drm_api: Operate on textures instead of buffers
Most use cases just got the buffer from the texture
	and then called into one of the get_handle functions.

	Also with this patch it would be easier to move to a
	generic function for getting handles from textures
	and textures from handles, that is exposed via the screen.
2009-08-28 13:38:23 +01:00
Brian Paul
73fc09a7bf Merge branch 'mesa_7_5_branch' 2009-08-18 17:55:27 -06:00
José Fonseca
10430f47a4 trace: Remove space next to the class attribute of the trace. 2009-08-14 20:05:51 +01:00
Brian Paul
9ba19b892c gallium/trace: remove stray semicolons 2009-08-11 20:34:21 -06:00
Jakob Bornecrantz
a41a253ce3 gallium: Add texture usage information to surface_buffer_create
We need aditional meta data about the usage of the surface
	in softpipe because we need to be able tell the diffrence
	between PRIMARY and DISPLAY_TARGET surfaces.
2009-08-11 18:34:43 +01:00
Jakob Bornecrantz
1f9ee623d1 trace: Use correct texture in drm_api wrapper 2009-08-05 19:29:29 +01:00
Michel Dänzer
0b7a907f39 gallium/trace: Fix SCons build. 2009-07-20 02:05:38 +02:00
Jakob Bornecrantz
c0d7502a2c trace: Add drm api integration
This is okay since drm_api.h doesn't have any external
	dependancies, one could make it only compile on platforms
	that support drm.
2009-07-02 14:57:55 +02:00
Brian Paul
b750b9fc3d gallium: remove the pipe_sampler_state::shadow_ambient field
This was only present for the sake of GL_ARB_shadow_ambient which we
never implemented in Gallium.  If we someday want GL_ARB_shadow_ambient
we can implement it in the state tracker by adding a MAD after the
relevant TEX instructions.
2009-06-30 08:51:32 -06:00
José Fonseca
d609df1dae trace: Use size_t consistently. 2009-06-18 14:54:09 +01:00
Jakob Bornecrantz
210ad58ee3 trace: Don't write state objects to file if dumping is not set 2009-06-14 06:07:50 +02:00
Brian Paul
a04af335a4 Merge branch 'mesa_7_5_branch'
Conflicts:

	src/mesa/drivers/dri/i915/i915_tex_layout.c
	src/mesa/drivers/dri/i965/brw_wm_glsl.c
	src/mesa/drivers/dri/intel/intel_buffer_objects.c
	src/mesa/drivers/dri/intel/intel_pixel_bitmap.c
	src/mesa/drivers/dri/intel/intel_pixel_draw.c
	src/mesa/main/enums.c
	src/mesa/main/texstate.c
	src/mesa/vbo/vbo_exec_array.c
2009-06-24 08:54:37 -06:00
Michal Krol
1b334587e9 trace: __func__ --> __FUNCTION__. 2009-06-10 11:56:38 +02:00
Jakob Bornecrantz
41482a6461 trace/rbug: Add support for draw block rule 2009-06-09 19:24:06 +01:00
Jakob Bornecrantz
b71a254f05 trace/rbug: Return textures currently bound to context 2009-06-09 16:00:40 +01:00
Jakob Bornecrantz
8d2324d355 trace/rbug: Sleep on windows when blocked 2009-06-08 15:01:48 +02:00
Jakob Bornecrantz
61ffba44fd trace/rbug: Use condvar on system that has it for blocking 2009-06-05 03:01:34 +01:00
Jakob Bornecrantz
76b3072e9b trace/rbug: Add new contexts functions to trace rbug 2009-06-04 23:45:29 +01:00
Jakob Bornecrantz
01fa34cb98 trace/rbug: Add rbug integration for remote debugging 2009-06-01 11:19:56 +01:00
Jakob Bornecrantz
bd59dd69ba trace: Improve shader wrapping 2009-05-18 20:54:09 +01:00
Keith Whitwell
57fd202375 gallium: remove occlusion_count flag from depth-stencil state
Drivers can just keep track of whether they are within a query
by monitoring the begin/end query callbacks.  The flag adds no
information beyond that.

Only softpipe was examining this flag -- it has been fixed up
and retested with demos/arbocclude.
2009-05-16 17:26:39 +01:00
Jakob Bornecrantz
f04c38fa1f trace: Export enabled status 2009-05-16 01:50:53 +01:00
Jakob Bornecrantz
ee05658798 trace: Unwrap buffer in texture_blanket 2009-05-16 01:50:53 +01:00
Jakob Bornecrantz
ab95f389a5 trace: If either shader is disabled don't draw 2009-05-16 01:50:53 +01:00
Jakob Bornecrantz
3b4da4e9da trace: Put shaders on a list in the context 2009-05-16 01:50:53 +01:00
Jakob Bornecrantz
c30f661189 trace: Move state dump functions to tr_dump_state.[c|h] 2009-05-16 01:50:53 +01:00
Jakob Bornecrantz
8ae52413c7 trace: Add initializer for static variables 2009-04-20 16:07:44 +02:00
Jakob Bornecrantz
f2d2b3d8e2 trace: Enable dumping to be turned on and off 2009-04-19 16:24:41 +01:00
Jakob Bornecrantz
44d0e0caf4 trace: Keep screen objects on lists 2009-04-17 16:03:01 +02:00
Jakob Bornecrantz
1e42f68fd6 trace: Fix is_referenced functions 2009-04-17 16:03:01 +02:00
Jakob Bornecrantz
5800e0aad1 trace: Simplify trace_buffer function 2009-04-17 16:03:01 +02:00
Thomas Hellstrom
9b75627fab gallium: Make sure we flush before some texture / buffer operations.
Also implement context member functions to optimize away those
flushes whenever possible.

Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
2009-04-15 17:16:58 +02:00
José Fonseca
7cfd3b3bdf trace: Dump the fence, not its pointer. 2009-04-09 21:28:31 +01:00
José Fonseca
0da3a13d6a trace: Use 'flags' name consistently. 2009-04-09 21:27:03 +01:00
José Fonseca
e0e5d5014e trace: Make calls dumping threadsafe. 2009-04-08 16:26:05 +01:00
José Fonseca
d2cdf6253c trace: Make call no global. 2009-04-08 16:26:05 +01:00
José Fonseca
927eb8fe4c trace: Simplify cast wrappers. 2009-04-08 16:26:05 +01:00
José Fonseca
7000b9d74a trace: Match pipe_context::clear prototype. 2009-04-08 16:26:04 +01:00
Michel Dänzer
eb168e26aa gallium: Clean up driver clear() interface.
Only allows clearing currently bound buffers, but colour and depth/stencil in
a single call.
2009-04-04 19:01:51 +02:00
Michel Dänzer
d332f8b4ef gallium: Remove some little-used fields from struct pipe_surface. 2009-03-26 10:53:47 +01:00
José Fonseca
57ea34214c trace: Defer the cast to after the check for enabled trace.
Prevents segfault when trace is disabled.
2009-03-25 21:47:17 +00:00
José Fonseca
c847b45153 trace: Update readme.
Actually, the trace driver with the xlib statetracker is
still causing assertion failures here..
2009-03-25 21:04:12 +00:00
José Fonseca
58351b5023 trace: Number calls. 2009-03-25 21:04:05 +00:00
Alan Coopersmith
ad11107206 Add #ifdefs needed to compile Gallium on Solaris with gcc or Sun cc
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-25 11:07:31 -07:00
Jakob Bornecrantz
1196885293 trace: Fix args to buffer write 2009-03-22 04:33:36 +01:00