Vinson Lee
e5fd15199d
savage: Remove unnecessary header.
2010-10-01 16:57:19 -07:00
Vinson Lee
841503fddf
glsl: Remove unnecessary header.
2010-10-01 16:27:58 -07:00
Ian Romanick
c77cd9ec10
i965: Enable GL_ARB_texture_rg
2010-10-01 15:49:13 -07:00
Ian Romanick
9ef390dc14
mesa: Enable GL_ARB_texture_rg in software paths
2010-10-01 15:49:13 -07:00
Ian Romanick
421f4d8dc1
ARB_texture_rg: Allow RED and RG textures as FBO color buffer attachments
2010-10-01 15:49:13 -07:00
Ian Romanick
5d1387b2da
ARB_texture_rg: Add R8, R16, RG88, and RG1616 internal formats
2010-10-01 15:49:13 -07:00
Ian Romanick
214a33f610
ARB_texture_rg: Handle RED and RG the same as RGB for tex env
2010-10-01 15:49:13 -07:00
Ian Romanick
cd5dea6401
ARB_texture_rg: Add GL_RED as a valid GL_DEPTH_TEXTURE_MODE
2010-10-01 15:49:13 -07:00
Ian Romanick
cc6f13def5
ARB_texture_rg: Add GL_TEXTURE_{RED,GREEN}_SIZE query support
2010-10-01 15:49:12 -07:00
Ian Romanick
3ebbc176f9
ARB_texture_rg: Correct some errors in RED / RG internal format handling
...
Fixes several problems:
The half-float, float, and integer internal formats depend on
ARB_texture_rg and other extensions.
RG_INTEGER is not a valid internal format.
Generic compressed formats depend on ARB_texture_rg, not
EXT_texture_compression_rgtc.
Use GL_RED instead of GL_R.
2010-10-01 15:49:12 -07:00
Ian Romanick
bb45ab0a96
ARB_texture_rg: Add GLX protocol support
2010-10-01 15:49:12 -07:00
Nicolas Kaiser
96efa8a923
i965g: use Elements macro instead of manual sizeofs
...
Signed-off-by: Nicolas Kaiser <nikai@nikai.net>
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-10-01 16:41:13 -06:00
Eric Anholt
e9bcc83289
i965: Fix up copy'n'pasteo from moving coordinate setup around for gen4.
2010-10-01 14:09:00 -07:00
Eric Anholt
bfd9715c3c
i965: Add real support for pre-gen5 texture sampling to the new FS.
...
Fixes 36 testcases, including glsl-fs-shadow2d*-bias which fail on the
Mesa IR backend.
2010-10-01 14:02:48 -07:00
richard
92eb07a281
evergreen : fix z format setting, enable stencil.
2010-10-01 16:10:02 -04:00
Eric Anholt
8f63a44636
i965: Pre-gen6, map VS outputs (not FS inputs) to URB setup in the new FS.
...
We should fix the SF to actually give us just the data we need, but
this fixes regressions in the new FS until then.
Fixes:
glsl-kwin-blur
glsl-routing
2010-10-01 12:21:51 -07:00
Eric Anholt
ff5ce9289b
i965: Also increment attribute location when skipping unused slots.
...
Fixes glsl1-texcoord varying.
2010-10-01 12:19:21 -07:00
Eric Anholt
354c40a624
i965: Fix the gen6 jump size for BREAK/CONT in new FS.
...
Since gen5, jumps are in increments of 64 bits instead of increments
of 128-bit instructions.
2010-10-01 12:19:21 -07:00
Eric Anholt
efc4a6f790
i965: Add gen6 attribute interpolation to new FS backend.
...
Untested, since my hardware is not booting at the moment.
2010-10-01 12:19:21 -07:00
Jerome Glisse
29b491bd03
r600g: indentation fixes
...
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-10-01 10:26:58 -04:00
Dave Airlie
738aa29289
r600g: setup basic loop consts on r600 + evergreen.
...
this sets up a single loop constant like r600c does.
2010-10-01 16:06:31 +10:00
Dave Airlie
7777c997e0
r600g: only set the Z export if shader exports it.
2010-10-01 16:06:30 +10:00
Alex Deucher
0c39a53aa6
r600c: pull over 6xx/7xx vertex fixes for evergreen
2010-10-01 00:51:37 -04:00
Dave Airlie
539a2978ed
r600g: flush SH cache on constant change on evergreen
2010-10-01 14:43:02 +10:00
Dave Airlie
b67aa5311f
r600g: fix evergreen draw-buffers
...
just a typo in the register headers.
2010-10-01 14:24:14 +10:00
Dave Airlie
14c95bb4ee
r600g: add cb flushing for extra buffers + depth buffer on r600/evergreen
2010-10-01 14:05:02 +10:00
Dave Airlie
ac225c76a6
r600g: sync vertex/texture cache on resources on evergreen
...
this gets rid of lots of the instability on evergreen,
which isn't surprising since it really broken not to flush caches.
2010-10-01 14:04:32 +10:00
Dave Airlie
d662195f00
r600g: fixup vertex format picking.
...
there are some vertex formats defined in r600c not in the docs.
2010-10-01 13:36:56 +10:00
Dave Airlie
e973221538
r600g: add assembler support for other vtx fetch fields.
...
this shouldn't change behaviour, just push the choice of what
to do out to the shader.
2010-10-01 13:36:56 +10:00
Eric Anholt
1d073cb2d9
i965: Split the gen4 and gen5 sampler handling apart.
...
Trying to track the insanity of the different argument layouts for
normal/shadow crossed with normal/lod/bias one generation at a time is
enough.
Fixes: glsl1-texture2D() with bias.
(first test passing in this code that doesn't pass without it!)
2010-09-30 20:23:40 -07:00
Eric Anholt
5f237a1ccb
i965: Use the lowering pass for texture projection.
...
We should end up with the same code, but anyone else with this issue
could share the handling (which I got wrong for shadow comparisons in
the driver before).
2010-09-30 20:23:40 -07:00
Eric Anholt
aae338104f
glsl: Add a lowering pass for texture projection.
2010-09-30 20:23:36 -07:00
Dave Airlie
35cfe286d6
r600g: realign evergreen code with r600 code.
...
fixes segfault in depth-tex-modes-glsl and OA startup.
2010-10-01 11:15:13 +10:00
Alex Deucher
a3e9998614
r600c: add reloc for CB_COLOR0_ATTRIB
...
We'll need a reloc for tiling eventually,
so add it now.
2010-09-30 20:55:54 -04:00
Dave Airlie
5eccdc62b9
r600g: add reloc for evergreen color attrib
...
we'll need this for color tiling on evergreen.
2010-10-01 10:52:09 +10:00
Dave Airlie
40ccb235d6
r600g: drop depth quirk on evergreen
...
none of the EG cards need the quirk.
2010-10-01 10:30:17 +10:00
Dave Airlie
05d1d86907
r600g: add winsys support for CTL constants.
...
These need to be emitted, we also need them to do proper vtx start,
instead of abusing index offset.
2010-10-01 10:30:16 +10:00
Dave Airlie
084c29baed
r600g: fix evergreen depth flushing.
...
although evergreen can apparantly sample direct from 24-bit,
just make it work with the current method for now.
2010-10-01 10:17:20 +10:00
Dave Airlie
7ae4da8056
r600g: use Elements macro instead of manual sizeofs
2010-10-01 10:17:20 +10:00
Brian Paul
66992463ac
draw: check for null sampler pointers
...
http://bugs.freedesktop.org/show_bug.cgi?id=30516
2010-09-30 16:42:17 -06:00
Brian Paul
542d6cb1b8
gallivm: added some comments
2010-09-30 16:42:17 -06:00
John Doe
40181aef60
r600g: keep a mapping around for each bo
...
Save a lot of call into the kernel and thus improve performances.
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-30 17:53:36 -04:00
John Doe
dde1391cc9
r600g: don't double count dirty block
...
This avoid to overcount the number of dwords we need and
thus avoid maximazation of cs buffer use.
Signed-off-by: Jerome Glisse <jglisse@redhat.com
2010-09-30 17:38:18 -04:00
Jerome Glisse
113f1cdfce
evergreeng: avoid overlapping border color btw VS & PS
...
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-30 17:07:28 -04:00
Eric Anholt
c6960e4471
i965: Fix new FS handling of builtin uniforms with packed scalars in structs.
...
We were pointing each element at the .x channel of the
ParameterValues.
Fixes glsl1-linear fog.
2010-09-30 13:45:42 -07:00
Eric Anholt
a7cddd7de3
mesa: Don't reference a W component in setting up a vec3 uniform component.
...
The 965 driver would try to set up storage for the W component, and
the offsets would get mixed up.
2010-09-30 13:45:42 -07:00
Eric Anholt
6f6542a483
i965: Fix whole-structure/array assignment in new FS.
...
We need to walk the type tree to get the right register types for
structure components. Fixes glsl-fs-statevar-call.
2010-09-30 13:45:42 -07:00
Tom Fogal
3661f757ee
Revert "Prefer intrinsics to handrolled atomic ops."
...
This reverts commit 5f66b340aa
, quickly
fixing 30514.
2010-09-30 14:41:53 -06:00
Jerome Glisse
9d4ae914e2
r600g: fix constant & literal src splitting, also fix mplayer gl2 shader
...
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-30 16:33:12 -04:00
Tom Fogal
5f66b340aa
Prefer intrinsics to handrolled atomic ops.
2010-09-30 13:20:57 -06:00