Michal Krol
767d1472df
tgsi: Fix bogus loop condition in sanity.
2010-01-05 09:28:39 +01:00
Michal Krol
c301fa6fc8
tgsi: Treat MOV source operand as FLOAT so modifiers works as expected.
2010-01-05 09:28:36 +01:00
Michal Krol
7218322703
tgsi: Store ADDR file in interpreter as an int.
2010-01-05 09:28:34 +01:00
Michal Krol
7c8e67e4aa
tgsi: Remove dead micro_umod().
2010-01-05 09:28:32 +01:00
Michal Krol
97f9a147db
tgsi: Make interpreter aware of float and integer data types.
...
Debug check for inf and nan only on float channels.
Apply absolute and negate source operand modifiers based on
opcode type.
2010-01-05 09:28:29 +01:00
Michal Krol
c34f6faf35
gallium: Add UMOD TGSI opcode.
...
Either that or have UDIV have two destination operands.
2010-01-05 09:28:27 +01:00
Michal Krol
062aab96e0
gallium: Add SWITCH, CASE, DEFAULT and ENDSWITCH opcodes to TGSI.
...
Provide reference implementation of them in tgsi_exec.
Note that BREAK opcode is overloaded and can be used to break out
of either a loop or a switch-case statement.
2010-01-05 09:28:25 +01:00
Michal Krol
08a3efee10
tgsi/ureg: Improve immediate match & expand logic.
...
Do not pollute immediates with unsuccessfull attempts to expand them.
2010-01-05 09:27:13 +01:00
Michal Krol
ff56a12051
tgsi: Support signed/unsigned integer immediate types.
2010-01-05 09:27:10 +01:00
Michal Krol
b1c55e80aa
gallium: Add signed/unsigned int immediate data types.
2010-01-05 09:27:08 +01:00
Michal Krol
bf4b4c1b6f
tgsi: Cleanup interpreter code for other existing integer opcodes.
2010-01-05 09:27:06 +01:00
Michal Krol
2c046034dc
Remove TGSI_OPCODE_SHR, map existing usage to TGSI_OPCODE_ISHR.
...
This is to differentiate it from its unsigned version, TGSI_OPCODE_USHR.
2010-01-05 09:26:48 +01:00
Michal Krol
df0826fba3
tgsi: Implement new integer opcodes.
...
Update interpreter and ureg.
Also, get rid of SHR -- it's actually an alias for ISHR.
2010-01-05 09:26:46 +01:00
Michal Krol
c59eda0993
gallium: Add more integer TGSI opcodes.
2010-01-05 09:26:43 +01:00
Brian Paul
7836a96657
mesa: added _mesa_[Get]TexParameterI[u]iv() functions
...
New in GL 3.0. Primarily meant for setting int/uint-valued texture
border color. Not plugged into dispatch table yet.
2010-01-04 20:00:09 -07:00
Brian Paul
f6c2d1f94f
mesa: make texture BorderColor a union of float/int/uint
...
When we have integer-valued texture formats, the texture border color
must also store integer and uint values.
With GL 3.0, the new glTexParameterIiv() and glTexParameterIuiv() functions
can set the border color to int or uint values.
2010-01-04 19:53:30 -07:00
Brian Paul
32b9983c0a
mesa: use get_texobj() in _mesa_GetTexParameter() funcs
2010-01-04 19:20:33 -07:00
Brian Paul
5ac16495a2
Merge branch 'mesa_7_7_branch'
...
Conflicts:
docs/relnotes.html
src/gallium/drivers/llvmpipe/lp_tex_sample_c.c
src/gallium/drivers/r300/r300_cs.h
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/main/enums.c
2010-01-04 19:16:24 -07:00
Brian Paul
6d84580858
mesa: add missing _mesa_lock_texture() call
2010-01-04 19:05:31 -07:00
Eric Anholt
b434a816d7
i915: Use _MaxLevel on principle in texture setup.
...
It was OK before because we proceed to clamp the value to hardware
limits, but given that other use of MaxLevel has been a trap, let's
avoid it.
2010-01-04 14:15:12 -08:00
Eric Anholt
19a26dfc47
intel: Fix CopyTexImage from tiled mipmap levels > 0.
...
Fixes piglit fbo-copyteximage.
2010-01-04 14:15:12 -08:00
Eric Anholt
63610fae4f
i965: Fix the surface offset calculation for tiled buffers.
...
If we ever had a non-tile-aligned tiled renderbuffer, the math was all
off. Use the existing x,y coordinates instead of trying to
reconstruct them from an incorrectly-calculated offset value.
2010-01-04 14:15:12 -08:00
Andre Maasikas
a160d1c27d
r600: support vertex_array_bgra
...
Use vertex program key mechanism and swizzle during vertex fetch - is there
a better way?
2010-01-04 16:16:43 -05:00
Brian Paul
82421c549f
mesa: added GL_DU8DV8_ATI in extract_float_rgba()
...
Fixes warning seen with Shadowgrounds. See bug 24016.
2010-01-04 14:01:19 -07:00
Brian Paul
01bf004d8b
docs: initial release notes for 7.7.1
2010-01-04 14:01:18 -07:00
Vinson Lee
6130bb1391
mesa: Prevent possible array out-of-bounds access by _mesa_light.
2010-01-04 12:06:04 -08:00
Vinson Lee
bfc34c8804
i965g: Fix assert.
2010-01-04 11:28:37 -08:00
Vinson Lee
ad80009c88
tgsi: Fix assert.
2010-01-04 11:25:38 -08:00
Brian Paul
0fb1eaddfb
Merge branch 'gallium-conditional-rendering'
2010-01-04 11:47:39 -07:00
Brian Paul
e661bf5018
mesa: regenerated enums.c file
2010-01-04 11:30:03 -07:00
Brian Paul
707faf65c8
glapi: comment-out TIMEOUT_IGNORED
...
This is not really a GLenum value.
2010-01-04 11:30:03 -07:00
Brian Paul
f52dd2ab33
glsl: use varName variable in _slang_gen_assignment()
2010-01-04 11:30:03 -07:00
Brian Paul
195568e4cb
mesa: more detailed error message in extract_float_rgba()
2010-01-04 11:27:17 -07:00
Alan Hourihane
1baaf111c8
fix overflow
2010-01-04 17:41:49 +00:00
Kristian Høgsberg
51362a75a7
intel: intelScreenContext() is no longer used
2010-01-04 11:48:03 -05:00
Kristian Høgsberg
5a0b60aa1b
intel: Remove remaining dri2.enabled tests
2010-01-04 11:48:02 -05:00
Kristian Høgsberg
2861d9200b
intel: Drop more cliprect bookkeeping
2010-01-04 11:48:02 -05:00
Kristian Høgsberg
d282128ff6
intel: Remove struct intel_framebuffer
...
With the vsync fields no longer relevant and by refactoring the code
to no longer use color_rb[0-1] we can just use struct gl_framebuffer
directly.
2010-01-04 11:48:02 -05:00
Kristian Høgsberg
a6e1d3edac
intel: Remove client-side vblank code
2010-01-04 11:48:02 -05:00
Kristian Høgsberg
5bc4b886e4
intel: Drop intelWindowMoved()
...
Everything this functions does under DRI2 is also taken care of
by intel_draw_buffer(), which is always called where intelWindowMoved()
is called.
2010-01-04 11:48:02 -05:00
Kristian Høgsberg
5203b7227c
intel: Drop batchbuffer cliprect_mode tracking
2010-01-04 11:48:02 -05:00
Kristian Høgsberg
f55d0920cd
intel: Drop DRI1 static regions
2010-01-04 11:48:01 -05:00
Kristian Høgsberg
ee49ac8742
intel: Use depth buffer from ctx.DrawBuffer in copypix_src_region()
...
This function was using intel->depth_region, which is the static region
for the DRI1 depth buffer. This code has always been broken with DRI2
but I suspect it doesn't get excersized much.
2010-01-04 11:48:01 -05:00
Kristian Høgsberg
01dc463e5d
intel: Drop LOCK/UNLOCK_HARDWARE()
2010-01-04 11:48:01 -05:00
Kristian Høgsberg
3566bc7584
intel: Drop DRI1 SwapBuffer implementation
2010-01-04 11:48:01 -05:00
Kristian Høgsberg
4611f08c07
intel: Drop DRI1 CopySubBuffer implementation
2010-01-04 11:48:01 -05:00
Kristian Høgsberg
48c0ff1424
intel: Drop DRI1 support
...
The DDX driver stopped supporting DRI1 so we're dropping support for
that from the DRI driver too.
2010-01-04 11:48:00 -05:00
Kristian Høgsberg
39a0e4e7de
Push __driDriverExtensions out of dri_util.c and into the drivers
...
This lets the individual drivers select which extensions to advertise.
Specifically, most drivers (tdfx, sis, savage etc) don't support DRI2
but the shared extension list in dri_util.c does list the DRI2 extension.
Pushing the list into the drivers, lets us avoid listing the DRI2
extension for drivers that don't support it.
2010-01-04 11:48:00 -05:00
Kristian Høgsberg
d61f07318c
Remove leftover __DRI{screen,drawable,context}Private references
...
As part of the DRI driver interface rewrite I merged __DRIscreenPrivate
and __DRIscreen, and likewise for __DRIdrawablePrivate and
__DRIcontextPrivate. I left typedefs in place though, to avoid renaming
all the *Private use internal to the driver. That was probably a
mistake, and it turns out a one-line find+sed combo can do the mass
rename. Better late than never.
2010-01-04 11:48:00 -05:00
Kristian Høgsberg
8616cec5c9
Check for libdrm_$chipset.pc when needed
...
This adds missing pkg-config lookup for intel and moves the radeon
lookup into a case...esac so it's only looked up when one or more of
the radeon drivers are enabled.
2010-01-04 11:47:59 -05:00