Commit graph

39979 commits

Author SHA1 Message Date
Brian Paul
78791d1065 egl: added cpp assertions/sanity checks 2008-06-20 14:30:21 -06:00
Patrice Mandin
5e1d657d50 nv30: Add separate nv30 state stuff for fb, based on nv40 one, need to use it now 2008-06-20 22:19:22 +02:00
Brian Paul
a87e717d0d egl: added null ptr checks 2008-06-20 10:20:47 -06:00
Brian Paul
064001dbe7 egl: use dlsym() to try to identify APIs 2008-06-19 16:26:21 -06:00
Jakob Bornecrantz
8d0329fb6a i915: Fixed cubemap layouts
Apprently we shouldn't do all the advanced layout
	operation for none compressed formats.

	The compressed code was also broken, its currently
	disabled, but should be fixed once i915simple starts
	to support compressed formats.
2008-06-19 17:11:06 +02:00
José Fonseca
6fbfcf9222 gallium: Handle malloc failure. 2008-06-19 23:05:09 +09:00
Jakob Bornecrantz
6cbc2734d1 i915: Refractored and clean up i915_texture.c 2008-06-19 14:43:54 +02:00
José Fonseca
c5bf215b1b gallium: Add extra parenthesis as advised by gcc. 2008-06-19 21:17:33 +09:00
Michal Krol
b440cea343 util: Add missing format names. 2008-06-19 14:08:06 +02:00
José Fonseca
aa816d114e draw: Fix MSVC integer size conversion warning. 2008-06-19 10:47:54 +09:00
Brian Paul
f140138558 gallium: additional fixes to ensure even number of vertices per buffer 2008-06-18 15:08:19 -06:00
Brian Paul
7d7f3e2c94 gallium: split long prims into chunks with an even number of vertices
This fixes culling "parity" errors when splitting long tri strips.  Splitting
strips into chunks with an odd number of vertices causes front/back-face
orientation to get reversed and upsets culling.
2008-06-18 14:55:12 -06:00
Brian Paul
0cf79316d0 egl: omit libmesa.a glapi.c from library 2008-06-18 09:22:01 -06:00
Brian Paul
51f24ef5ba gallium: remove duplicated u_mm.c in file list 2008-06-18 09:22:01 -06:00
Brian Paul
1496bba429 egl: call st_get_proc_address() 2008-06-18 09:22:01 -06:00
Michal Krol
28ac7d37fe gallium: Remove PIPE_FORMAT_A8UB8UG8SR8S_NORM definition. 2008-06-18 08:51:38 +02:00
Jakob Bornecrantz
081c05605f i915: Fix for s8_z24 textures not being shown 2008-06-18 01:48:24 +02:00
Michal Krol
4539410d71 gallium: Add facilities for mixed pipe formats. 2008-06-17 21:48:39 +02:00
Jakob Bornecrantz
5805a9e328 i915: Made region pool a slabpool 2008-06-17 17:46:45 +02:00
Jakob Bornecrantz
d9d1e39d95 i915: Max and Min lod now works 2008-06-17 15:47:01 +02:00
Michal Krol
64d854ebf7 util: Use pf_get_size(). 2008-06-14 09:34:02 +02:00
Jakob Bornecrantz
3da77b33bb i915: Improved the not used tile code 2008-06-13 20:46:14 +02:00
Jakob Bornecrantz
d1397fd779 i915: Fix offsets not being used for surface targets 2008-06-13 19:07:29 +02:00
Jakob Bornecrantz
c341094921 i915: Fix most of the clear problems
trivial/clear-undefined still fails
2008-06-13 19:03:51 +02:00
Michal Krol
62f03a9ecc gallium: Fix PIPE_FORMAT_A2B10G10R10_UNORM definition.
Whoops!
2008-06-13 15:21:11 +02:00
Michal Krol
b03a0373a2 gallium: Add PIPE_FORMAT_A2B10G10R10_UNORM. 2008-06-13 14:58:24 +02:00
Michal Krol
6f548c88e2 gallium: Allow pipe format component sizes to be specified
with finer granularity.

This will allow us to define A2R10G10B10 format.
2008-06-13 14:50:29 +02:00
Jakob Bornecrantz
de35bf5bdc i915: Messed up lineloop now works 2008-06-13 14:11:20 +02:00
Jakob Bornecrantz
e9b8df69b4 i915: Support all primtive types in vbuf path 2008-06-13 12:21:58 +02:00
Brian Paul
20ee00754d gallium: disable the codegen for TGSI_OPCODE_EXPBASE2 for now.
The x86 code seems to fail for exponents of 4 or larger.
See glean's vertProg1/EX2 test.
2008-06-12 16:01:43 -06:00
Keith Whitwell
08f1b8ac70 gallium: fix SSE codegen for instructions that use both a CONSTANT and IMMEDIATE
Fixes codegen for instructions like MUL dst, CONST[0], IMM[0];  the two operands
would up getting aliased in the x86/sse code.

Fixes glean/vertProg1/fogparams test.
2008-06-12 16:01:05 -06:00
Zack Rusin
68ef8e89a5 glsl: implement variable array indexes 2008-06-12 14:15:37 -04:00
Keith Whitwell
23d340c9ed pb: don't assert(0) on failure to allocate - this is a normal condition in many drivers 2008-06-12 14:41:25 +01:00
José Fonseca
2fed8d8496 gallium: Support L16 pixel format. 2008-06-12 10:56:19 +09:00
José Fonseca
0f552f500c pipebuffer: Fix improper memory free. 2008-06-12 10:56:16 +09:00
José Fonseca
23422d603a gallium: Implement debug_get_num_option.
For numeric options.
2008-06-12 10:56:04 +09:00
Alan Hourihane
6f7ed99b30 revert the DRI2 commits 2008-06-12 00:11:54 +01:00
Keith Whitwell
2161b0fafc draw: don't assume vertex position is in data[0] 2008-06-11 23:48:45 +01:00
Keith Whitwell
807f8f177b draw: preserve specular alpha when flatshading -- may be FOGC 2008-06-11 18:47:43 +01:00
Alan Hourihane
d45e99060d fix card_extensions 2008-06-11 15:50:07 +01:00
Alan Hourihane
f851ba705a fix legacy DRI 2008-06-11 15:35:12 +01:00
Alan Hourihane
1bcb817167 Hook gallium i915 up to DRI2 2008-06-11 14:52:55 +01:00
Alan Hourihane
4dd1917e4b small optimization 2008-06-11 14:51:41 +01:00
Alan Hourihane
4566b006f1 Bring in DRI2 changes 2008-06-11 14:10:08 +01:00
Keith Whitwell
bd92642100 draw: remove another debug assert on failover to generic vs varient 2008-06-11 09:36:58 +01:00
Keith Whitwell
ab399b555c draw: remove debug assert on failover to generic vs varient 2008-06-11 09:19:48 +01:00
Keith Whitwell
aa7c21a45b Revert "draw: no need to rearrange most primitives in vcache for flatshade-first"
This reverts commit ad44e68706.
2008-06-10 16:56:32 +01:00
Keith Whitwell
ad44e68706 draw: no need to rearrange most primitives in vcache for flatshade-first
The driver/pipeline will still be applying flatshade-first state to the
triangles emitted from vcache, so there's no need to rotate the vertices
of most primitives.  The only exception is POLYGON, as explained in the
code.
2008-06-10 14:48:57 +01:00
Keith Whitwell
14a13e3767 draw: fix edgeflags on clipped poly emit 2008-06-10 14:48:57 +01:00
Keith Whitwell
061e1c6c57 draw: rework splitting of fan/loop prims in varray.c, fix flatshade issues 2008-06-10 09:23:45 +01:00