platform/upstream/mesa.git
15 years agotrace: Use long longs to ensure covering 64bits integers.
José Fonseca [Sat, 16 Aug 2008 18:44:37 +0000 (19:44 +0100)]
trace: Use long longs to ensure covering 64bits integers.

15 years agotrace: Get the trace file from the GALLIUM_TRACE option itself.
José Fonseca [Sat, 16 Aug 2008 17:45:00 +0000 (18:45 +0100)]
trace: Get the trace file from the GALLIUM_TRACE option itself.

16 years agogallium: fix do_flip bug on glCopyTexImage / surface_copy() path
Brian Paul [Mon, 18 Aug 2008 19:15:09 +0000 (13:15 -0600)]
gallium: fix do_flip bug on glCopyTexImage / surface_copy() path

16 years agogallium: Remove TGSI_CC_UN.
Michal Krol [Mon, 18 Aug 2008 15:49:01 +0000 (17:49 +0200)]
gallium: Remove TGSI_CC_UN.

16 years agotgsi: Update condition code vector when storing dest register.
Michal Krol [Mon, 18 Aug 2008 15:18:58 +0000 (17:18 +0200)]
tgsi: Update condition code vector when storing dest register.

16 years agotgsi: Saturate modifier obeys ExecMask.
Michal Krol [Mon, 18 Aug 2008 15:09:20 +0000 (17:09 +0200)]
tgsi: Saturate modifier obeys ExecMask.
Implement NVIDIA [-1;+1] saturate mode.

16 years agotgsi: Respect condition codes when storing destination register.
Michal Krol [Mon, 18 Aug 2008 15:03:56 +0000 (17:03 +0200)]
tgsi: Respect condition codes when storing destination register.

16 years agotgsi: Cosmetic changes.
Michal Krol [Mon, 18 Aug 2008 13:57:39 +0000 (15:57 +0200)]
tgsi: Cosmetic changes.

16 years agotgsi: Add condition code (CC) register.
Michal Krol [Mon, 18 Aug 2008 13:42:26 +0000 (15:42 +0200)]
tgsi: Add condition code (CC) register.

16 years agomesa: rearrange some code in _mesa_BindTexture() to fix error detection bug 17173
Brian Paul [Mon, 18 Aug 2008 14:49:41 +0000 (08:49 -0600)]
mesa: rearrange some code in _mesa_BindTexture() to fix error detection bug 17173

Also, move GL_TEXTURE_RECTANGLE init code into separate function.

16 years agoscons: Fix build.
Michal Krol [Mon, 18 Aug 2008 12:40:02 +0000 (14:40 +0200)]
scons: Fix build.

16 years agopick first mode
Alan Hourihane [Sun, 17 Aug 2008 20:59:00 +0000 (21:59 +0100)]
pick first mode

16 years agoif we can't find a mode, return first. At least we should
Alan Hourihane [Sun, 17 Aug 2008 20:55:37 +0000 (21:55 +0100)]
if we can't find a mode, return first. At least we should
see the top left portion if we've got larger screens on
other CRTC's

16 years agoconsolidate intel directories.
Alan Hourihane [Sun, 17 Aug 2008 19:17:18 +0000 (20:17 +0100)]
consolidate intel directories.

we now have

src/gallium/winsys/drm/intel/{common,dri,egl}

16 years agorather than use CRTC 1 (aka LVDS), try and setup all connectors/encoders
Alan Hourihane [Sun, 17 Aug 2008 18:14:00 +0000 (19:14 +0100)]
rather than use CRTC 1 (aka LVDS), try and setup all connectors/encoders
and get the same output on all.

16 years agochoose a 1024x768 resolution
Alan Hourihane [Sun, 17 Aug 2008 18:13:17 +0000 (19:13 +0100)]
choose a 1024x768 resolution

16 years agochoose sane default for dri driver location
Alan Hourihane [Sun, 17 Aug 2008 18:12:54 +0000 (19:12 +0100)]
choose sane default for dri driver location

16 years agofix DESTDIR omissions
Hanno Böck [Fri, 15 Aug 2008 23:14:54 +0000 (17:14 -0600)]
fix DESTDIR omissions

16 years agomesa: glsl: fix linking of varying vars which are arrays
Brian Paul [Fri, 15 Aug 2008 21:00:18 +0000 (15:00 -0600)]
mesa: glsl: fix linking of varying vars which are arrays

16 years agogallium: in st_draw_vbo() use ctx->Current.Attrib[] values when arrays are missing...
Brian Paul [Fri, 15 Aug 2008 17:50:29 +0000 (11:50 -0600)]
gallium: in st_draw_vbo() use ctx->Current.Attrib[] values when arrays are missing/null

fixes potential segfaults when vertex arrays are missing

16 years agoxlib: Kill xmesa_surface.
José Fonseca [Fri, 15 Aug 2008 10:24:06 +0000 (11:24 +0100)]
xlib: Kill xmesa_surface.

A winsys cannot expect that the surfaces passed display_surface are the
surfaces it created, as surface are now in generate texture views created
by pipe_screen. Indeed, the fact it was working so far was mere luck.

This fixes a weird tiled output when using the trace pipe driver.

Winsys' surfaces should die.

16 years agotrace: Fix typo.
José Fonseca [Fri, 15 Aug 2008 10:20:57 +0000 (11:20 +0100)]
trace: Fix typo.

16 years agopython/retrace: Update frame when PIPE_FLUSH_FRAME spotted.
José Fonseca [Fri, 15 Aug 2008 09:33:35 +0000 (10:33 +0100)]
python/retrace: Update frame when PIPE_FLUSH_FRAME spotted.

16 years agotrace: Wrap all textures and surface created by the pipe driver.
José Fonseca [Fri, 15 Aug 2008 09:31:23 +0000 (10:31 +0100)]
trace: Wrap all textures and surface created by the pipe driver.

That is,

Unfortunately, this causes a regression in softpipe, where the
output gets tyled.

16 years agotrace: Allow multiple screens. Flush after call.
José Fonseca [Fri, 15 Aug 2008 09:24:09 +0000 (10:24 +0100)]
trace: Allow multiple screens. Flush after call.

16 years agopyhon/retrace: Retrace surface contents.
José Fonseca [Thu, 14 Aug 2008 21:03:35 +0000 (22:03 +0100)]
pyhon/retrace: Retrace surface contents.

Now capable of replaying trivial/quad-tex-2d

16 years agopython/retrace: Keep addresses as strings.
José Fonseca [Thu, 14 Aug 2008 13:40:27 +0000 (14:40 +0100)]
python/retrace: Keep addresses as strings.

To simplify looking up these in the trace.

16 years agotrace: Several fixes.
José Fonseca [Thu, 14 Aug 2008 13:38:58 +0000 (14:38 +0100)]
trace: Several fixes.

16 years agopython: Fix put/get_tile_raw bindings.
José Fonseca [Thu, 14 Aug 2008 13:35:25 +0000 (14:35 +0100)]
python: Fix put/get_tile_raw bindings.

16 years agotrace: Trace surface contents.
José Fonseca [Thu, 14 Aug 2008 13:34:33 +0000 (14:34 +0100)]
trace: Trace surface contents.

16 years agotrace: Make stream a global variable.
José Fonseca [Thu, 14 Aug 2008 11:50:52 +0000 (12:50 +0100)]
trace: Make stream a global variable.

This not only simplifies the code, but allows to use atexit() to ensure
the log is closed when applications don't exit cleanly.

16 years agomesa: Issue PIPE_FLUSH_FRAME in glSwapBuffers/glFlush/glFinish.
José Fonseca [Thu, 14 Aug 2008 10:40:33 +0000 (11:40 +0100)]
mesa: Issue PIPE_FLUSH_FRAME in glSwapBuffers/glFlush/glFinish.

16 years agogallium: New PIPE_FLUSH_FRAME flag to signal the end of a frame.
José Fonseca [Thu, 14 Aug 2008 10:39:41 +0000 (11:39 +0100)]
gallium: New PIPE_FLUSH_FRAME flag to signal the end of a frame.

16 years agopython/retrace: Commit unsaved changes to the doc.
José Fonseca [Thu, 14 Aug 2008 10:15:13 +0000 (11:15 +0100)]
python/retrace: Commit unsaved changes to the doc.

16 years agogallium: init default texture image to gray
Brian Paul [Thu, 14 Aug 2008 21:44:09 +0000 (15:44 -0600)]
gallium: init default texture image to gray

16 years agogallium: use a default texture in update_textures(), update_samplers() when needed
Brian Paul [Thu, 14 Aug 2008 21:38:09 +0000 (15:38 -0600)]
gallium: use a default texture in update_textures(), update_samplers() when needed

The default texture is used when the current fragment shader has texture
sample instructions but the user has not provided/bound a texture.

16 years agogallium: added queries to determin GL_EXT_packed_depth_stencil support
Brian Paul [Thu, 14 Aug 2008 16:53:59 +0000 (10:53 -0600)]
gallium: added queries to determin GL_EXT_packed_depth_stencil support

16 years agotrace: Update status.
José Fonseca [Thu, 14 Aug 2008 10:00:49 +0000 (11:00 +0100)]
trace: Update status.

16 years agopython: Update status.
José Fonseca [Thu, 14 Aug 2008 10:00:40 +0000 (11:00 +0100)]
python: Update status.

16 years agopython/retrace: Application capable of replaying gallium traces.
José Fonseca [Thu, 14 Aug 2008 10:00:22 +0000 (11:00 +0100)]
python/retrace: Application capable of replaying gallium traces.

At the moment it is capable of replaying trivial/tri kind of apps.

See README for status.

16 years agopython: Allow to use trace pipe driver with python.
José Fonseca [Thu, 14 Aug 2008 09:58:23 +0000 (10:58 +0100)]
python: Allow to use trace pipe driver with python.

16 years agopython: Fix typo in buffer::write.
José Fonseca [Thu, 14 Aug 2008 09:48:29 +0000 (10:48 +0100)]
python: Fix typo in buffer::write.

16 years agopython: Remove unused var.
José Fonseca [Thu, 14 Aug 2008 09:47:55 +0000 (10:47 +0100)]
python: Remove unused var.

16 years agoxlib: Use trace usage.
José Fonseca [Thu, 14 Aug 2008 09:47:39 +0000 (10:47 +0100)]
xlib: Use trace usage.

16 years agotrace: Separate the trace screen/context vs the original screen/context.
José Fonseca [Thu, 14 Aug 2008 09:46:38 +0000 (10:46 +0100)]
trace: Separate the trace screen/context vs the original screen/context.

16 years agomesa: Don't use alignments < 4.
José Fonseca [Thu, 14 Aug 2008 09:11:51 +0000 (10:11 +0100)]
mesa: Don't use alignments < 4.

16 years agomesa: posix_memalign requires alignment to be multiple of sizeof(void*)
José Fonseca [Thu, 14 Aug 2008 09:10:53 +0000 (10:10 +0100)]
mesa: posix_memalign requires alignment to be multiple of sizeof(void*)

16 years agogallium: Catch errors from posix_memalign.
José Fonseca [Thu, 14 Aug 2008 08:44:49 +0000 (09:44 +0100)]
gallium: Catch errors from posix_memalign.

16 years agopython: Simplify st_winsys.
José Fonseca [Wed, 13 Aug 2008 11:41:19 +0000 (12:41 +0100)]
python: Simplify st_winsys.

16 years agopython: Bindings fixes.
José Fonseca [Wed, 13 Aug 2008 11:31:53 +0000 (12:31 +0100)]
python: Bindings fixes.

16 years agotranslate: Draw can request up to PIPE_MAX_ATTRIBS + 1 vertex elements.
José Fonseca [Wed, 13 Aug 2008 11:13:54 +0000 (12:13 +0100)]
translate: Draw can request up to PIPE_MAX_ATTRIBS + 1 vertex elements.

16 years agocheck for winsys->destroy before calling
Alan Hourihane [Thu, 14 Aug 2008 08:52:15 +0000 (09:52 +0100)]
check for winsys->destroy before calling

16 years agogallium: fix exec_kilp(), fix Exec/FuncMask test for TGSI_OPCODE_RET
Brian Paul [Wed, 13 Aug 2008 23:20:40 +0000 (17:20 -0600)]
gallium: fix exec_kilp(), fix Exec/FuncMask test for TGSI_OPCODE_RET

Fixes a few glean glsl regressions.

16 years agogallium: in fallback_copy_texsubimage() create new tex surface for CPU read access
Brian Paul [Wed, 13 Aug 2008 20:59:48 +0000 (14:59 -0600)]
gallium: in fallback_copy_texsubimage() create new tex surface for CPU read access

Was trying to use the strb->surface but it's made for GPU read/write only.

16 years agotgsi: Initial code for KILP, needs CCs working to be complete.
Michal Krol [Wed, 13 Aug 2008 18:09:56 +0000 (20:09 +0200)]
tgsi: Initial code for KILP, needs CCs working to be complete.

16 years agotgsi: Use a homebrew version of toupper().
Michal Krol [Wed, 13 Aug 2008 17:31:13 +0000 (19:31 +0200)]
tgsi: Use a homebrew version of toupper().

16 years agotgsi: Fix typo.
Michal Krol [Wed, 13 Aug 2008 17:28:10 +0000 (19:28 +0200)]
tgsi: Fix typo.

16 years agotgsi: Validate instruction opcode and operand counts.
Michal Krol [Wed, 13 Aug 2008 15:31:26 +0000 (17:31 +0200)]
tgsi: Validate instruction opcode and operand counts.

16 years agotgsi: Use tgsi_info to dump opcode names.
Michal Krol [Wed, 13 Aug 2008 15:27:15 +0000 (17:27 +0200)]
tgsi: Use tgsi_info to dump opcode names.

16 years agotgsi: Use tgsi_opcode_info.
Michal Krol [Wed, 13 Aug 2008 15:22:34 +0000 (17:22 +0200)]
tgsi: Use tgsi_opcode_info.

16 years agomake: List tgsi_info.c.
Michal Krol [Wed, 13 Aug 2008 15:20:14 +0000 (17:20 +0200)]
make: List tgsi_info.c.

16 years agoscons: List tgsi_info.c.
Michal Krol [Wed, 13 Aug 2008 15:19:20 +0000 (17:19 +0200)]
scons: List tgsi_info.c.

16 years agotgsi: Opcode information.
Michal Krol [Wed, 13 Aug 2008 15:16:59 +0000 (17:16 +0200)]
tgsi: Opcode information.

16 years agofix compilation
Zack Rusin [Wed, 13 Aug 2008 11:14:47 +0000 (07:14 -0400)]
fix compilation

16 years agomesa: KIL -> KIL, KIL_NV -> KILP.
Michal Krol [Wed, 13 Aug 2008 09:19:24 +0000 (11:19 +0200)]
mesa: KIL -> KIL, KIL_NV -> KILP.

16 years agoi915: Swap meanings of KIL and KILP.
Michal Krol [Wed, 13 Aug 2008 09:13:46 +0000 (11:13 +0200)]
i915: Swap meanings of KIL and KILP.

16 years agocell: KILP is a predicated discard, KIL is a conditional discard.
Michal Krol [Wed, 13 Aug 2008 09:10:58 +0000 (11:10 +0200)]
cell: KILP is a predicated discard, KIL is a conditional discard.

16 years agotgsi: Swap meanings of KIL and KILP opcodes.
Michal Krol [Wed, 13 Aug 2008 09:09:20 +0000 (11:09 +0200)]
tgsi: Swap meanings of KIL and KILP opcodes.

16 years agogallivm: Translate KIL instead of KILP.
Michal Krol [Wed, 13 Aug 2008 08:58:54 +0000 (10:58 +0200)]
gallivm: Translate KIL instead of KILP.

16 years agodraw: Use KIL instead of KILP.
Michal Krol [Wed, 13 Aug 2008 08:52:55 +0000 (10:52 +0200)]
draw: Use KIL instead of KILP.

16 years agogallium: Make a note that OPCODE_KIL is a conditional kill.
Michal Krol [Wed, 13 Aug 2008 07:15:27 +0000 (09:15 +0200)]
gallium: Make a note that OPCODE_KIL is a conditional kill.
Map OPCODE_TEXKILL to OPCODE_KIL.

16 years agogallium: more context clean-up
Brian Paul [Wed, 13 Aug 2008 00:02:44 +0000 (18:02 -0600)]
gallium: more context clean-up

16 years agomesa: glsl: fix error detection of writing to read-only variables
Brian Paul [Tue, 12 Aug 2008 23:42:13 +0000 (17:42 -0600)]
mesa: glsl: fix error detection of writing to read-only variables

16 years agomesa: texture crop rect state
Brian Paul [Tue, 12 Aug 2008 23:41:57 +0000 (17:41 -0600)]
mesa: texture crop rect state

16 years agomesa: glsl: fix comment
Brian Paul [Tue, 12 Aug 2008 23:41:21 +0000 (17:41 -0600)]
mesa: glsl: fix comment

16 years agogallium: distinguish between KIL and KILP
Brian Paul [Tue, 12 Aug 2008 18:00:57 +0000 (12:00 -0600)]
gallium: distinguish between KIL and KILP

Note: KIL (unconditional) not done yet.

16 years agomesa: glsl: enable bzero() in slang_typeinfo_construct()
Brian Paul [Tue, 12 Aug 2008 17:47:46 +0000 (11:47 -0600)]
mesa: glsl: enable bzero() in slang_typeinfo_construct()

16 years agomesa: glsl: remove reads of output regs from fragment shaders too
Brian Paul [Tue, 12 Aug 2008 16:00:59 +0000 (10:00 -0600)]
mesa: glsl: remove reads of output regs from fragment shaders too

16 years agomesa: set point state
Brian Paul [Tue, 12 Aug 2008 16:00:36 +0000 (10:00 -0600)]
mesa: set point state

16 years agomesa: allow _mesa_remove_output_reads() to work on fragment programs
Brian Paul [Tue, 12 Aug 2008 16:00:02 +0000 (10:00 -0600)]
mesa: allow _mesa_remove_output_reads() to work on fragment programs

16 years agomesa: glsl: better error messages
Brian Paul [Tue, 12 Aug 2008 14:50:29 +0000 (08:50 -0600)]
mesa: glsl: better error messages

16 years agomesa: glsl: regenerated files
Brian Paul [Tue, 12 Aug 2008 14:50:14 +0000 (08:50 -0600)]
mesa: glsl: regenerated files

16 years agomesa: glsl: additional constructors
Brian Paul [Tue, 12 Aug 2008 14:49:57 +0000 (08:49 -0600)]
mesa: glsl: additional constructors

16 years agomesa: glsl: better mod() functions
Brian Paul [Mon, 11 Aug 2008 23:35:21 +0000 (17:35 -0600)]
mesa: glsl: better mod() functions

16 years agomesa: Rename sources to sources.mak.
José Fonseca [Thu, 7 Aug 2008 08:41:05 +0000 (09:41 +0100)]
mesa: Rename sources to sources.mak.

16 years agogallium: Disable debug break by default on windows.
José Fonseca [Thu, 7 Aug 2008 08:15:32 +0000 (09:15 +0100)]
gallium: Disable debug break by default on windows.

16 years agotgsi: Prevent division by zero.
José Fonseca [Thu, 7 Aug 2008 08:13:11 +0000 (09:13 +0100)]
tgsi: Prevent division by zero.

16 years agogallium: Allow compilation inside X.
José Fonseca [Thu, 7 Aug 2008 08:12:55 +0000 (09:12 +0100)]
gallium: Allow compilation inside X.

16 years agogdi: Remove CVS keyword.
José Fonseca [Thu, 7 Aug 2008 08:03:52 +0000 (09:03 +0100)]
gdi: Remove CVS keyword.

16 years agoglut: Remove EOF characters.
José Fonseca [Thu, 7 Aug 2008 08:03:30 +0000 (09:03 +0100)]
glut: Remove EOF characters.

16 years agopython: Use st_buffers instead of pipe_buffers.
José Fonseca [Tue, 12 Aug 2008 10:33:20 +0000 (11:33 +0100)]
python: Use st_buffers instead of pipe_buffers.

16 years agotrace: More dump fixes.
José Fonseca [Tue, 12 Aug 2008 10:32:42 +0000 (11:32 +0100)]
trace: More dump fixes.

16 years agotrace: Fix create_blend_state dump.
José Fonseca [Mon, 11 Aug 2008 17:29:04 +0000 (18:29 +0100)]
trace: Fix create_blend_state dump.

16 years agotrace: Dump polygon stipple state as an array.
José Fonseca [Mon, 11 Aug 2008 17:09:36 +0000 (18:09 +0100)]
trace: Dump polygon stipple state as an array.

16 years agopython: Bindings for p_compiler.h types.
José Fonseca [Mon, 11 Aug 2008 16:08:53 +0000 (17:08 +0100)]
python: Bindings for p_compiler.h types.

16 years agotrace: Fix create_depth_stencil_alpha_state trace.
José Fonseca [Mon, 11 Aug 2008 16:08:27 +0000 (17:08 +0100)]
trace: Fix create_depth_stencil_alpha_state trace.

16 years agopython: Bindings for pipe_{depth,stencil,alpha}_state.
José Fonseca [Mon, 11 Aug 2008 15:57:50 +0000 (16:57 +0100)]
python: Bindings for pipe_{depth,stencil,alpha}_state.

16 years agotrace: Dump pipe_{depth,stencil,alpha}_state names.
José Fonseca [Mon, 11 Aug 2008 15:56:08 +0000 (16:56 +0100)]
trace: Dump pipe_{depth,stencil,alpha}_state names.

16 years agogallium: Name pipe_depth_stencil_alpha_state member structures.
José Fonseca [Mon, 11 Aug 2008 15:55:30 +0000 (16:55 +0100)]
gallium: Name pipe_depth_stencil_alpha_state member structures.

So that the previously anonymous depth/stencil/alpha structures can be
identified in the traces.

This is just syntactic sugar: it does not break source or binary compatibility.

16 years agopython: Simplify setting the constant buffers.
José Fonseca [Mon, 11 Aug 2008 13:31:04 +0000 (14:31 +0100)]
python: Simplify setting the constant buffers.