Maciej Cencora
ad83aeccdc
radeon: return false on texture validation if texture isn't complete
2009-11-14 18:11:16 +01:00
Maciej Cencora
23ec7c4574
radeon: rework mipmap tree
2009-11-14 16:55:39 +01:00
Maciej Cencora
8f88cf3938
radeon: more texture code refactoring
2009-11-14 16:55:38 +01:00
Maciej Cencora
9d0af686b2
radeon: minor refactoring of texture code
...
Also properly set dstImageOffsets for TexSubImage case.
2009-11-14 16:55:38 +01:00
Maciej Cencora
7628b06ba3
radeon: rework mipmap tree reference counting
2009-11-14 16:55:34 +01:00
Maciej Cencora
6e5d473cc1
r300: fix regression introduced in 1d5a06a1f7
...
Spotted by Dave Airlie
2009-11-14 14:43:34 +01:00
Maciej Cencora
aa19561158
radeon: use radeon_bo_is_referenced_by_cs for query objects
2009-11-14 14:43:18 +01:00
Maciej Cencora
d3fa67c9b8
radeon/r300: don't flush cmdbuf if not necessary
2009-11-14 14:43:10 +01:00
Maciej Cencora
286bf89e5a
radeon/r300: no need to flush the cmdbuf when changing scissors state in KMM mode
2009-11-14 14:42:48 +01:00
Maciej Cencora
f6d0993212
radeon: fix glBufferSubData
2009-11-14 14:42:34 +01:00
Maciej Cencora
084f43c150
radeon: add radeon_bo_is_referenced_by_cs function
2009-11-14 14:42:26 +01:00
Maciej Cencora
49876ab6a7
radeon: remove unnecessary call to radeonEmitState
...
fixes bo space accounting errors
2009-11-14 14:42:19 +01:00
Maciej Cencora
0aad2aee66
r300: add missing texformat
2009-11-14 14:42:10 +01:00
Maciej Cencora
e92492295b
r300: remove unneeded includes
2009-11-14 14:42:01 +01:00
Eric Anholt
57f40b1837
i965: Share OPCODE_TXB between brw_wm_emit.c and brw_wm_glsl.c
...
This should fix TXB on G45 and older in the GLSL case.
2009-11-13 16:04:13 -08:00
Eric Anholt
1be0efcbdc
i965: Share OPCODE_TEX between brw_wm_emit.c and brw_wm_glsl.c.
...
New comments should explain some of the confusion about how this message
works.
2009-11-13 16:04:10 -08:00
Eric Anholt
a0fd49b334
i965: Clean up emit_tex a bit.
2009-11-13 15:17:24 -08:00
Eric Anholt
3d36d6b4cf
Merge remote branch 'origin/mesa_7_6_branch'
2009-11-13 14:45:29 -08:00
Eric Anholt
99077e7792
i965: Flag BRW_NEW_CONTEXT on some context state.
...
Fixing this is a prereq for avoiding flagging all state at new
batch time. Eliminating that still causes problems, though (notably
glean logicOp fails on my GM965).
2009-11-13 14:39:09 -08:00
Eric Anholt
1ffd0a7789
intel: Remove some dead context structure fields.
2009-11-13 13:18:57 -08:00
Eric Anholt
3727858ceb
i965: Remove an unused cache_item field.
2009-11-13 13:18:57 -08:00
Eric Anholt
b54f8eeae8
i965: Remove long dead structures for ffvertex_prog.c.
2009-11-13 13:18:57 -08:00
Eric Anholt
ded0ec1ea5
i965: Use bo_map instead of subdata to upload the bits of constant buffer.
...
Saves CPU time, resulting in a 2.5% FPS win on ETQW.
2009-11-13 13:18:57 -08:00
Eric Anholt
8e8586e626
i965: Validate the number of URB entries selected for the VS.
2009-11-13 13:18:56 -08:00
Eric Anholt
3c05c1eb63
intel: When subdataing a busy buffer, use a temporary and blit in.
...
This cuts a massive number of waits in ET:QW, which uses a VBO ringbuffer.
Unfortunately it doesn't BufferData when wrapping back to 0, so we can't
be clever with tracking what's been initialized.
2009-11-13 13:18:56 -08:00
Eric Anholt
4e50ce35ee
i965: Clean up Ironlake sampler type definitions.
...
They're the same regardless of execution width for 8, 4x2, and 16.
2009-11-13 13:18:56 -08:00
Eric Anholt
91bd593109
i965: Avoid moving the current value back into the accumulator for MAD.
...
This is a 2.9% (+/-.3%) performance win for my GL demo, which hits MAD
sequences for matrix transforms.
2009-11-13 13:18:56 -08:00
Eric Anholt
d6690ce15f
mesa: Improve the eliminate-move-use to work across multiple instructions.
...
This shaves more instructions off of the VS of my GL demo, but no
performance difference this time at n=6. This also fixes a regression
that was in this path, which is now piglit's glsl-vs-mov-after-deref.
2009-11-13 13:18:22 -08:00
Zack Rusin
654122ba7b
st/xorg: try to fix non-uniform transforms
2009-11-13 14:58:35 -05:00
Michal Krol
eaa34c2dea
glsl/apps: Report syntax parser errors.
2009-11-13 19:51:49 +01:00
Michal Krol
3f147c71ed
slang: Report syntax parser errors.
2009-11-13 19:51:24 +01:00
Michal Krol
99c89ebdb0
glsl/cl: Add simple error reporting.
2009-11-13 19:51:02 +01:00
Michal Krol
b385312bc7
slang: Regenerate .gc files.
2009-11-13 06:03:56 +01:00
Michal Krol
7593562a61
slang: Get rid of the old syntax file and utilities.
2009-11-13 05:58:46 +01:00
Michal Krol
cd5553b457
slang: Plug in the new syntax parser.
2009-11-13 05:52:39 +01:00
Michal Krol
f5b6e06390
gdi: Link to glslcl.
2009-11-13 05:49:25 +01:00
Michal Krol
38a1f0b5d1
glsl/apps: Add GLSL compiler that translates source text into binary stream.
...
Should be used in place of gc_to_bin utility to precompile builtin library.
2009-11-13 03:02:14 +01:00
Michal Krol
08e90bdea1
glsl/cl: Add a hard-coded syntax parser.
2009-11-13 03:00:45 +01:00
Ian Romanick
b6b753f727
intel: Don't check for context pointer to be NULL during extension init
...
Thanks to Chia-I Wu's changes to the extension function
infrastructure, we no longer have to tell the loader which extensions
the driver might enable. This means that intelInitExtensions will
never be called with a NULL context pointer. Remove all the NULL checks.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
2009-11-12 15:43:09 -08:00
Ian Romanick
a736d3f439
intel: Remove unused enable_imaging parameter to intelInitExtensions
2009-11-12 15:43:09 -08:00
Eric Anholt
514544f373
i965: Fix Ironlake shadow comparisons.
...
The cube map array index arg is always present.
2009-11-12 11:41:39 -08:00
Eric Anholt
5f305b1db9
i965: Fix VBO last-valid-offset setup on Ironlake.
...
Instead of doing math based on the (broken for VBO && offset != 0)
input->count number, just use the BO size. Fixes assertion failure in ETQW.
2009-11-12 11:41:39 -08:00
Keith Whitwell
2f54d02d20
i965g: consult fs inputs when laying out vs output regs
...
Vertex shader now emits just the FS inputs, in the positions and order
expected by the fragment shader.
This means potentially regenerating the vertex shader to match
different fragment shader's input layouts.
2009-11-11 18:51:58 -08:00
Keith Whitwell
0c547d63c4
i965g: skip over vertex position output when preallocating FS inputs
2009-11-11 18:51:57 -08:00
Keith Whitwell
a010307e0a
i965g: some more cases where file_max[] is used without obligatory +1
2009-11-11 18:51:57 -08:00
Keith Whitwell
e4d174ea1b
i965g: smaller upload buffer for index data
2009-11-11 18:51:57 -08:00
Keith Whitwell
d86e9079a8
i965g: fix off-by-one on curbe upload
2009-11-11 18:51:57 -08:00
Keith Whitwell
e243279a48
i965g: avoid use of internally generated immediates
...
Currently not working, so don't generate more of them.
2009-11-11 18:51:57 -08:00
Zack Rusin
4d72f8f520
st/xorg: use an immediate instead of a full blown const
2009-11-11 21:47:28 -05:00
Zack Rusin
72b4a7d67f
st/xorg: don't use flow control
2009-11-11 21:43:40 -05:00