Commit Graph

97 Commits

Author SHA1 Message Date
José Fonseca
9d97c3d0be python/trace: Control the interpreter from command line options. 2009-03-25 21:03:38 +00:00
José Fonseca
5743483778 python: Use Ansi escape codes regardless of output is a tty or not. 2009-03-25 21:03:36 +00:00
José Fonseca
b52b78a226 python: List packages needed on debian systems. 2009-03-25 21:03:25 +00:00
José Fonseca
a6ad0c86ca python: Allow to dump all images to disk. 2009-03-25 21:03:22 +00:00
José Fonseca
8ca95d8121 python: Tweak instructions. 2009-03-25 21:03:20 +00:00
José Fonseca
ad5f9752ce python: s/pitch/stride/ 2009-03-25 21:03:15 +00:00
José Fonseca
5381331f97 python: s/num_cbufs/nr_cbufs/ 2009-03-25 21:03:10 +00:00
Michal Krol
7f1062584e python: Return on unknown pixel format. 2009-03-17 11:34:42 +01:00
Michal Krol
709b3128f3 python: Fix build after refcount rework. 2009-03-17 10:43:04 +01:00
Michal Krol
7b0c459bb4 python: Include `p_winsys_screen.h'. 2009-03-17 10:33:25 +01:00
Michal Krol
4e1c925ef5 python: Do not pass screen object to pipe_buffer_reference. 2009-03-17 10:26:38 +01:00
Michal Krol
d8445e8fe1 python: Use transfer object to read from a surface. 2009-03-16 16:48:18 +01:00
Michal Krol
fcf93aa06d python: pipe_vertex_buffer's pitch member has been renamed to stride. 2009-03-16 16:12:04 +01:00
Michal Krol
56282d79f6 python: size is not a member of pipe_constant_buffer any more. 2009-03-16 16:12:02 +01:00
michal
97e4caa33a python: Include missing `p_compiler.h' header. 2009-03-16 08:18:10 +01:00
michal
5494251890 python: Do not pass shader_state to util shader functions. 2009-03-16 08:18:06 +01:00
michal
38b074495a python: Use transfer objects to initialise texture data. 2009-03-16 08:18:03 +01:00
michal
f6c3edb308 python: Use new bypass_vs_clip_and_viewport rasteriser flag. 2009-03-16 08:17:59 +01:00
Jakob Bornecrantz
f500f3a72c gallium: Remove do_flip argument from surface_copy
I should have gotten most uses and implementation
	correctly fixed, but things might break.

	Feel free to blame me.
2009-03-13 01:38:20 +01:00
Michel Dänzer
5e27cd46c0 gallium: Unify reference counting.
The core reference counting code is centralized in p_refcnt.h.

This has some consequences related to struct pipe_buffer:

* The screen member of struct pipe_buffer must be initialized, or
  pipe_buffer_reference() will crash trying to destroy a buffer with reference
  count 0. u_simple_screen takes care of this, but I may have missed some of
  the drivers not using it.
* Except for rare exceptions deep in winsys code, buffers must always be
  allocated via pipe_buffer_create() or via screen->*buffer_create() rather
  than via winsys->*buffer_create().
2009-03-04 11:58:48 +01:00
José Fonseca
37f21fce3b Merge commit 'origin/gallium-0.1'
Conflicts:
	src/gallium/auxiliary/pipebuffer/pb_bufmgr_mm.c
	src/gallium/auxiliary/util/u_tile.c
2009-02-23 17:21:36 +00:00
José Fonseca
60e35ebf14 python: More efficient blits from surfaces.
C code instead of interpreted python code.
2009-02-20 16:50:02 +00:00
José Fonseca
059d7f3103 python/interpreter: Don't do unnecessary updates. 2009-02-20 15:23:33 +00:00
José Fonseca
e92f3310fa python/retrace: Verbosity level. 2009-02-20 15:14:15 +00:00
José Fonseca
204526a6d2 python/retrace: Cope with python 2.4.x 2009-02-20 15:02:19 +00:00
José Fonseca
7887a3e42b python: Pass a zero offset to util_draw_vertex_buffer. 2009-02-20 13:00:13 +00:00
Zack Rusin
adfbba476d gallium: make p_winsys internal
move it to pipe/internal/p_winsys_screen.h and start converting
the state trackers to the screen usage
2009-01-30 15:57:33 -05:00
José Fonseca
5897383344 gallium: Remove the standalone surfaces.
This commit is mostly just a cosmetic change that cleans-up the interfaces,
replacing pipe_winsys::surface_* calls by

   /**
    * Allocate storage for a display target surface.
    *
    * Often surfaces which are meant to be blitted to the front screen (i.e.,
    * display targets) must be allocated with special characteristics, memory
    * pools, or obtained directly from the windowing system.
    *
    * This callback is invoked by the pipe_screenwhen creating a texture marked
    * with the PIPE_TEXTURE_USAGE_DISPLAY_TARGET flag  to get the underlying
    * buffer storage.
    */
   struct pipe_buffer *(*surface_buffer_create)(struct pipe_winsys *ws,
                                        unsigned width, unsigned height,
                                        enum pipe_format format,
                                        unsigned usage,
                                        unsigned *stride);

Most drivers were updated but not all were tested. Use the softpipe pipe
driver and the xlib winsys changes as a reference when fixing other drivers.
2009-01-20 12:22:49 +00:00
José Fonseca
1d77835668 python: Pass a zero offset to util_draw_vertex_buffer. 2008-12-31 15:03:35 +00:00
Roland Scheidegger
fd2492d244 gallium: fixes for srgb, new srgb formats
add some more srgb texture formats, including compressed ones
various fixes relating to srgb formats

issues: the util code for generating mipmaps will not handle srgb formats
        correctly (would need to use a linear->srgb conversion shader)
2008-12-12 05:12:55 +01:00
José Fonseca
51d9642f74 python/retrace: Dump indices too. 2008-12-09 19:37:25 +09:00
José Fonseca
d26a43f6c6 python/retrace: Dump vertex buffer contents. 2008-12-08 17:26:02 +09:00
José Fonseca
59ae12b5b1 python/retrace: Dump constants. 2008-11-20 01:02:03 +09:00
José Fonseca
2f153b5487 python: Allow to read from buffers. 2008-11-20 01:01:48 +09:00
José Fonseca
8a9e06257f python/retrace: Fix formatting of shaders. 2008-11-19 20:06:52 +09:00
José Fonseca
03f19bc33d python/retrace: Ignore irrelevant calls. 2008-11-19 20:06:04 +09:00
José Fonseca
56ce90c8be python/retrace: Highlight the trace dump to help to visualize. 2008-11-19 17:17:06 +09:00
José Fonseca
9efa6cafea python/retrace: Use the usual BSD-style license. 2008-11-19 16:23:01 +09:00
José Fonseca
46efe73daf python: Cleanup tri example. 2008-09-05 10:31:38 +09:00
José Fonseca
78435d9142 python: Use pipe_buffer_* inlines as much as possible. 2008-09-04 09:38:23 +09:00
José Fonseca
f637a96e85 gallium: Have pipe_buffer_* receive a pipe_screen instead of a pipe_context.
We want to use the pipe_buffer_* inlines everywhere, but a pipe context
is not always available nor is it needed.
2008-09-03 11:53:39 +09:00
Brian Paul
4f25420bdd gallium: refactor/replace p_util.h with util/u_memory.h and util/u_math.h
Also, rename p_tile.[ch] to u_tile.[ch]
2008-08-24 17:48:55 -06:00
José Fonseca
d32f51d471 python/retrace: Interpret texture/surfaces destructions. 2008-08-22 03:14:51 +01:00
José Fonseca
7f3c3683ce python/retrace: Process the trace call-by-call (instead of reading everything into memory). 2008-08-22 01:23:48 +01:00
José Fonseca
10624065b0 python/retrace: Support gziped traces. 2008-08-21 18:46:04 +01:00
José Fonseca
34cffce334 python/retrace: Retrace draw_elements and draw_range_elements. 2008-08-20 16:57:51 +01:00
José Fonseca
1d881b8e84 python: bindings for draw_range_elements. 2008-08-20 16:57:51 +01:00
José Fonseca
d7f8b95e09 python/retrace: Add several missing functions. 2008-08-19 21:35:06 +01:00
José Fonseca
9adfc57a4c python: Handle null state. 2008-08-19 21:35:06 +01:00
José Fonseca
5f1ef11ad2 python/retrace: Trim null chars.
They are often left in memory mapped files, and are not part of the XML
accept chars anyway.
2008-08-19 21:35:06 +01:00