summaryrefslogtreecommitdiff
path: root/src/gallium/include
AgeCommit message (Collapse)Author
2009-09-16gallium: remove incorrect 'return' stmtBrian Paul
2009-09-16gallium: Deprecate PIPE_CAP_S3TC.José Fonseca
No longer used. S3TC support is queried via pipe_screen::is_format_supported.
2009-09-15Merge branch 'mesa_7_6_branch'Brian Paul
2009-09-15gallium: Use the enum for pipe_transfer::usage.José Fonseca
2009-09-15gallium: pipe_transfer_destroy helper inline.José Fonseca
2009-09-15gallium: Fix pointer type casts.Michal Krol
2009-09-14gallium: Add pipe_transfer_map/unmap inlines.José Fonseca
2009-09-14gallium: Add Mac OS to pipe/p_thread.h.Vinson Lee
Mac OS also has POSIX threads.
2009-09-09gallium: Added HaikuOS platformaljen
2009-09-01tgsi: remove redundant CND0 opcodeKeith Whitwell
Can be implemented with CMP src2, src1, src0
2009-08-28drm_api: Operate on textures instead of buffersJakob Bornecrantz
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-18Merge branch 'mesa_7_5_branch'Brian Paul
2009-08-18gallium: improved comments, minor whitespace changesBrian Paul
2009-08-17gallium: Make PIPE_TRANSFER_{READ,WRITE,READ_WRITE} bitmask friendly.Maarten Maathuis
2009-08-14gallium: Always map for READ flag when DISCARD is not set.José Fonseca
This prevents the driver from discarding a buffer when the whole buffer is mapped for writing, but only a portion is effectively written. This is a temporary fix, because WRITE shouldn't imply DISCARD. The full fix implies using PIPE_BUFFER_USAGE_DISCARD, throughout the code, and will go only into master.
2009-08-11gallium: Add texture usage information to surface_buffer_createJakob Bornecrantz
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-07-31Rename TGSI LOOP instruction to better match theri usage.Michal Krol
The LOOP/ENDLOOP pair is renamed to BGNFOR/ENDFOR as its behaviour is similar to a C language for-loop. The BGNLOOP2/ENDLOOP2 pair is renamed to BGNLOOP/ENDLOOP as now there is no name collision.
2009-07-30tgsi: Declare a LOOP register.Michal Krol
The only valid usage for LOOP/ENDLOOP instructions is LOOP[0] as a destination register. The only valid usage for the remaining instructions is LOOP[0].x as an indirect register.
2009-07-23gallium: clean up opcode definitionsKeith Whitwell
Remove commented-out opcodes. Remove information about API mappings to opcodes, but add a reference to tgsi-instruction-set.txt where that information is better presented.
2009-07-23gallium: remove deprecated TGSI opcodesKeith Whitwell
Various opcodes which can be implemented trivially with other TGSI opcodes, such as matrix multiplication and negation. These were not used by any state tracker or implemented by any of the drivers.
2009-07-22gallium: remove multiple aliases for TGSI opcodesKeith Whitwell
This is a source of ongoing confusion. TGSI has multiple names for opcodes where the same semantics originate in multiple shader APIs. For instance, TGSI includes both Mesa/GLSL and DX/SM30 names for opcodes with the same semantics, but aliases those names to the same underlying opcode number. This makes it very difficult to visually inspect two sets of opcodes (eg in state tracker & driver) and check if they implement the same functionality. This patch arbitarily rips out the versions of the opcodes not currently favoured by the mesa state tracker and leaves us with a single name for each distinct operation.
2009-07-22gallium: simplify tgsi_full_immediate structKeith Whitwell
Remove the need to have a pointer in this struct by just including the immediate data inline. Having a pointer in the struct introduces complications like needing to alloc/free the data pointed to, uncertainty about who owns the data, etc. There doesn't seem to be a need for it, and it is unlikely to make much difference plus or minus to performance. Added some asserts as we now will trip up on immediates with more than four elements. There were actually already quite a few such asserts, but the >4 case could be used in the future to specify indexable immediate ranges, such as lookup tables.
2009-07-14gallium: Define PIPE_CAP_BLEND_EQUATION_SEPARATE, remove extension from ↵Patrice Mandin
default extension list
2009-07-08gallium: Add endian detection to p_config.Corbin Simpson
2009-07-06gallium: rearrange some members to avoid memory holes/paddingZack Rusin
plus it saves us a cacheline in the cso
2009-07-03Merge branch 'mesa_7_5_branch'Jakob Bornecrantz
Conflicts: src/mesa/main/dlist.c src/mesa/vbo/vbo_save_api.c
2009-06-30Merge branch 'mesa_7_5_branch'Brian Paul
Conflicts: src/mesa/vbo/vbo_exec_draw.c
2009-06-30gallium: remove the pipe_sampler_state::shadow_ambient fieldBrian Paul
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-30gallium: New PIPE_BUFFER_USAGE_FLUSH_EXPLICIT flag for ↵José Fonseca
buffer_flush_mapped_range. When a buffer was mapped for write and no explicit flush range was provided the existing semantics were that the whole buffer would be flushed, mostly for backwards compatability with non map-buffer-range aware code. However if the buffer was mapped/unmapped with nothing really written -- something that often happens with the vbo -- we were unnecessarily assuming that the whole buffer was written. The new PIPE_BUFFER_USAGE_FLUSH_EXPLICIT flag (based from ARB_map_buffer_range 's GL_MAP_FLUSH_EXPLICIT_BIT flag) allows to clearly distinguish the legacy usage from the nothing written usage.
2009-07-01gallium: fix the front face semanticsZack Rusin
mesa allocates both frontface and pointcoord registers within the fog coordinate register, by using swizzling. to make it cleaner and easier for drivers we want each of them in its own register. so when doing compilation from the mesa IR to tgsi allocate new registers for both and add new semantics to the respective declarations.
2009-06-30drm/st: Return drm_api struct from a functionJakob Bornecrantz
2009-06-26gallium: added PIPE_CAP_TGSI_CONT_SUPPORTEDBrian Paul
2009-06-16gallium: Avoid atomic ops / locking when src is dst.José Fonseca
2009-06-15gallium: Ensure assert macro is defined before being used in p_thread.hJosé Fonseca
2009-06-15gallium: Fix segfault and valgrind error introduced with commit ↵Thomas Hellstrom
3f2e006b759705abd7c409d30f9aeb1f2a75b83f Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
2009-06-26Merge branch 'mesa_7_5_branch'Brian Paul
Conflicts: Makefile src/gallium/drivers/softpipe/sp_screen.c src/mesa/main/version.h
2009-06-25gallium: Add PIPE_OS_APPLE token.Vinson Lee
2009-06-16Merge branch 'mesa_7_5_branch'Brian Paul
Conflicts: src/mesa/main/api_validate.c
2009-06-15Merge branch 'mesa_7_5_branch'Thomas Hellstrom
Conflicts: progs/util/extfuncs.h
2009-06-11Merge branch 'mesa_7_5_branch'José Fonseca
2009-06-11gallium: New pf_is_depth_and_stencil / pf_is_depth_or_stencil inlines.José Fonseca
2009-06-11Merge branch 'mesa_7_5_branch'José Fonseca
Conflicts: src/mesa/state_tracker/st_cb_fbo.c src/mesa/state_tracker/st_framebuffer.c
2009-06-10gallium: Shorthand functions for computing stride and sizes for a rect.José Fonseca
2009-06-10gallium: updated PIPE_CAP_x commentsBrian Paul
2009-06-05gallium: Make pipe thread say if it has condvars or notJakob Bornecrantz
2009-05-05gallium: remove redundant cube face #definesBrian Paul
2009-04-28gallium: Add a dri1 apiThomas Hellstrom
that a driver needs to implement on top of the drm api to support dri1. Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
2009-04-28gallium: Update the drm_api.Thomas Hellstrom
Make it possible to pass state-tracker-specific data to the init_screen function, and even open the door for device-specific state-tracker screen initialization. Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
2009-04-17pipe: Get the p_atomic_dec_zero logic right this time.José Fonseca
2009-04-17gallium: Fix PIPE_ATOMIC_GCC_INTRINSIC build.Michel Dänzer