Commit graph

24680 commits

Author SHA1 Message Date
Brian Paul
e87320b5e0 Merge branch 'mesa_7_5_branch' 2009-07-30 08:22:57 -06:00
Brian Paul
aefaeba54a docs: document new i915/945 extensions 2009-07-30 08:22:26 -06:00
Thomas Hellstrom
98ba6cfb4c mesa st: Change the preferred internal format for some RGB formats.
For GL_RGB5, GL_RGB4 and GL_R3_G3_B2, prefer
PIPE_FORMAT_R5G6B5_UNORM over PIPE_FORMAT_A1R5G5B5_UNORM, since hardware
is more likely to support the previous format for rendering.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2009-07-30 12:43:35 +02:00
Thomas Hellstrom
f583745519 mesa st: Report unsupported render-to-texture formats.
If a texture image is bound to a framebuffer for render-to-texture, but
the hardware doesn't support rendering to its internal format,
report the framebuffer as incomplete with FRAMEBUFFER_UNSUPPORTED.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2009-07-30 12:43:35 +02:00
Michal Krol
6c70285e33 tgsi: Add proper constraints to sanity. 2009-07-30 11:39:06 +02:00
Michal Krol
cf8907018e tgsi: Declare a LOOP register.
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-30 10:34:06 +02:00
Michal Krol
65fb2c52f9 tgsi: Fix number operands for LOOP/ENDLOOP. 2009-07-30 10:33:18 +02:00
Michal Krol
1e9d3ad4e1 vbo: Fix build on windows. 2009-07-30 10:31:57 +02:00
Michal Krol
b724dd28e2 tgsi: Document LOOP/ENDLOOP instruction operation. 2009-07-30 10:14:17 +02:00
Xiang, Haihao
3e2b6a2049 i965: Postpone ff_sync message in CLIP kernel on IGDNG
In addition, it guarantees ff_sync message is issued
2009-07-30 15:40:08 +08:00
Alex Deucher
0fdac3529c r600: fix mipmaps
redbook mipmap works
2009-07-30 03:31:37 -04:00
Eric Anholt
246729162c i915: Add support for EXT_stencil_two_side and ATI_separate_stencil.
Passes tests/stencil_twoside and glean/stencil2.
2009-07-29 21:25:39 -07:00
Eric Anholt
92b9aa1646 i915: Add ARB_point_sprite since we already expose NV_point_sprite.
It's all fallbacks anyway due to the DD_POINT_ATTEN fallback.
2009-07-29 20:56:14 -07:00
Brian Paul
b9889517f5 gallium: fix SSE shadow texture instructions
When sampling a 2D shadow map we need 3 texcoord components, not 2.
The third component (distance from light source) is compared against
the texture sample to return the result (visible vs. occluded).

Also, enable proper handling of TGSI_TEXTURE_SHADOW targets in Mesa->TGSI
translation.  There's a possibility for breakage in gallium drivers if
they fail to handle the TGSI_TEXTURE_SHADOW1D / TGSI_TEXTURE_SHADOW2D /
TGSI_TEXTURE_SHADOWRECT texture targets for TGSI_OPCODE_TEX/TXP instructions,
but that should be easy to fix.

With these changes, progs/demos/shadowtex.c renders properly again with
softpipe.
2009-07-29 16:33:58 -06:00
Alex Deucher
9c4c9f2837 r600: remove extraneous semicolon 2009-07-29 18:12:33 -04:00
Alex Deucher
b116f57bac r600: fix texture pitch alignment
fixes texwrap
2009-07-29 18:06:20 -04:00
Alex Deucher
1e207ba9c1 r600: minor fixes
- set MAX_LOD properly
- min texel pitch is 8 texels
- emit old command buffer when re-initing base state
2009-07-29 17:25:56 -04:00
Nicolai Hähnle
0723cd1b0a r300: Cleanup r300_fragment_program_code
Configuration register values are now stored directly in that structure.

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-07-29 21:15:00 +02:00
Nicolai Hähnle
d3a1fc62f4 r300/compiler: Adapt AllocateHwInputs interface to common usage pattern
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-07-29 21:15:00 +02:00
Eric Anholt
88ebf514a4 swrast: enable ARB_vertex_array_object.
It was getting enabled anyway but without the entrypoints installed.  Whoops.
2009-07-29 11:17:53 -07:00
Keith Whitwell
6842829539 mesa/st: short-circuit glFinish calls on WIN32 only
Windows opengl32.dll calls glFinish prior to every swapbuffers, which
makes it pretty hard to get decent performance...

Work around by mapping finish to flush on PIPE_OS_WINDOWS.  This is
conformant, though it might confuse poorly-written benchmarks which
attempt to measure a single event rather than figuring out the rate of
continuous processing.
2009-07-29 12:48:05 +01:00
Keith Whitwell
2420b283b7 mesa/st: recognize no-op scissor state when checking clear_with_quads
Some apps enable scissor but set the rectangle to the dimensions of
the window.  Don't let this force us onto a slower clear path.
2009-07-29 12:48:04 +01:00
Keith Whitwell
4d99e14535 util: _debug_printf should print even when DEBUG is not defined
The leading underscore is meaningful...  This function is used by
_warning and _error functions as well as the more common
debug_printf().

debug_printf (without underscore) gets turned off when DEBUG is
disabled, but warning/error messages still use this function to get
their message out.
(cherry picked from commit 0ac879dca7)
2009-07-29 12:48:04 +01:00
Cooper Yuan
03607708b0 r600: emit fog color in PS input map, fix fog related applications 2009-07-29 15:31:41 +08:00
Cooper Yuan
0f6d3aece7 R6xx/r7xx: VS export fog color as parameter 2009-07-29 15:23:56 +08:00
Ben Skeggs
693f900b16 nv50: support non-blocking query_result() 2009-07-29 11:19:52 +10:00
Ben Skeggs
625bc0cfa2 nouveau: map_range returning -EBUSY isn't necessarily an error 2009-07-29 10:58:05 +10:00
Christoph Bumiller
84166a021f nv50: correct zeta formats
What was Z24S8 before is actually S8Z24, and what we had for Z16
is actually X8Z24. Now, we also have the REAL Z24S8 and I added
Z32_FLOAT as well; most of the formats need different tile_flags.
2009-07-29 09:40:35 +10:00
Christoph Bumiller
987c59c486 nv50: use new 2D surface format names 2009-07-29 09:40:35 +10:00
Christoph Bumiller
1f17b8ff59 nv50: support more vtxelt formats
NOTE: we must not try to emit buffer relocations when
vtxbuf_nr is 0 but vtxelt_nr is not
2009-07-29 09:40:35 +10:00
Christoph Bumiller
72813ba5b6 nv50: should use uint32_t ptr in draw_elements_inline_u32 2009-07-29 09:40:34 +10:00
Christoph Bumiller
df189c9efc nv50: TIC/TSC fixes and additions
Red and blue were interchanged in TIC.
Add border color and some formats.
2009-07-29 09:40:34 +10:00
Christoph Bumiller
f498ccd654 nv50: fix sx/dx typo in transfer_rect_m2mf 2009-07-29 09:40:34 +10:00
Christoph Bumiller
d1b9183e64 nv50: fix viewport transform
The translation also needs to be inverted, and in bypass mode
the state tracker incorrectly assumes that Y = 0 = TOP, so we
need inversion there to; NDC clipping has to be deactivated
explicitly.
2009-07-29 09:40:34 +10:00
Christoph Bumiller
b0341f994f nv50: use correct scissor reg 2009-07-29 09:40:33 +10:00
Alex Deucher
8c56029b1e r600: fix tex clamp modes
This makes texwrap look better.
2009-07-28 18:09:38 -04:00
Alex Deucher
e629c50e2b r600: implement texture border color 2009-07-28 17:59:54 -04:00
Alex Deucher
719abd7fc0 r600: fix flat shading
Set the flat shading bit on the appropriate PS input
depending on the type of attribute it is.  The VS output
and PS input routing should probably be made more dynamic
at some point.  We may want to use semantic ids to make
it easier.
2009-07-28 16:58:41 -04:00
Alex Deucher
dbdb3952c1 r600: don't call r700UpdateShaders twice for each render 2009-07-28 15:58:01 -04:00
Alex Deucher
b1f7c844a3 r600: move r700TranslateFragmentShader into r700UpdateShaders 2009-07-28 15:53:45 -04:00
RALOVICH, Kristóf
45f4e8842e glx: assign per screen driver configs (DRISW) 2009-07-28 10:35:56 -06:00
RALOVICH, Kristóf
d090ba9e00 glx: assign per screen driver configs (DRI) 2009-07-28 10:35:56 -06:00
RALOVICH, Kristóf
82f4dc21cc glx: assign per screen driver configs (DRI2) 2009-07-28 10:35:56 -06:00
RALOVICH, Kristóf
e32b601e7d glx: properly release DRI configs
Release per screen DRI driver configs during screen destruction.
2009-07-28 10:35:56 -06:00
RALOVICH, Kristóf
ce0ad53281 glx: cache DRI configs in __GLXscreenConfigsRec 2009-07-28 10:35:56 -06:00
Alex Deucher
4d648523aa r600: disable flat shade fix in 506bacb8e4
This breaks textures.  We need to only set this bit for
attributes that that need flat shading.
2009-07-28 11:12:36 -04:00
Brian Paul
d2f6d6ce49 Merge branch 'mesa_7_5_branch'
Conflicts:

	Makefile
	configs/default
	docs/relnotes.html
	src/mesa/main/version.h
2009-07-28 08:58:25 -06:00
Brian Paul
94726bc69e gallium: minor code/comments clean-up 2009-07-28 08:55:43 -06:00
Chia-I Wu
a744a496d5 egl: Comment out unused tables in_eglFillInConfigs
This silences a compiler warning.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-07-28 08:55:43 -06:00
Vinson Lee
bc60b88411 progs/trivial: add missing files to Makefile, .gitignore 2009-07-28 08:54:48 -06:00