Brian Paul
ffde4e03cf
gallium: fix some BaseLevel, lastLevel bugs
2008-05-03 17:01:20 -06:00
Keith Whitwell
8e6a380798
gallium: add pipe surface layout value (Roland Scheidegger)
2008-05-03 15:41:05 +01:00
Brian Paul
99df379b2c
gallium: set template.target = PIPE_TEXTURE_2D
2008-05-02 11:14:08 -06:00
Keith Whitwell
b2021e7c06
gallium: identify depth-stencil textures
...
And don't use the display-target path to allocate them.
2008-05-02 17:56:01 +01:00
Keith Whitwell
7849ccb2a7
brw: remove dead code
2008-05-02 17:55:22 +01:00
Keith Whitwell
5cb29dae06
i915: update to new display target allocation
2008-05-02 16:56:06 +01:00
Keith Whitwell
a73ae3d5eb
gallium: Add texture usage flags, special-case allocation of display targets
...
For many envirionments it's necessary to allocate display targets
in a window-system friendly manner. Add facilities so that a driver
can tell if a texture is likely to be used to generate a display surface
and if use special allocation paths if necessary.
Hook up softpipe to call into the winsys->surface_alloc_storage()
routine in this case, though we probably want to change that interface
slightly also.
2008-05-02 16:46:31 +01:00
Keith Whitwell
4a15913208
gallium: remove usage of winsys->surface_alloc_storage from state tracker
...
Allocate a texture containing storage instead.
Also clean up ACCUM buffer allocation slightly -- drivers will need
some changes to texture allocation logic to accomodate the concept of
a texture that will only as image storage by the CPU, but it's cleaner
than it was.
2008-05-02 14:27:10 +01:00
Keith Whitwell
25d60838b5
gallium: fix build after merge
2008-05-02 12:17:11 +01:00
Keith Whitwell
c3a8a41faa
Merge branch 'gallium-0.1' into gallium-tex-surfaces
2008-05-02 12:00:13 +01:00
Alan Hourihane
5e49037caa
revert mode change back to 644
2008-05-02 10:34:58 +00:00
Alan Hourihane
7e4bc84dfc
inline -> INLINE
2008-05-02 10:31:46 +00:00
Alan Hourihane
54507125e7
Some changed for non-C99 compilers
2008-05-02 10:30:34 +00:00
Keith Whitwell
731e7b961c
re-add pipe_surface map/unmap inlines
2008-05-02 11:11:27 +01:00
Keith Whitwell
251db95945
cso: can memcmp-compare pipe_framebuffer_state now it includes fb dimensions
2008-05-02 11:11:27 +01:00
Michal Krol
a1cb0c2b91
tgsi: Do not assume IN and OUT registers are declared sequentially.
2008-05-02 11:13:58 +02:00
Michal Krol
36f93c5e51
tgsi: Fix build on Win32.
2008-05-02 10:20:53 +02:00
Michal Krol
9d151a2517
tgsi: Dump destination register modulate modifier.
2008-05-02 10:15:54 +02:00
Brian
869b0836c1
gallium: temporarily disable broken SSE2 code for ARL opcode
2008-05-01 18:56:20 -06:00
Brian
3b63bc8ac6
gallium: implement TGSI_OPCODE_EXP
2008-05-01 18:49:20 -06:00
Brian
7a4313b63b
gallium: implement TGSI_OPCODE_LOG
2008-05-01 18:42:01 -06:00
Brian Paul
bc49529874
added cast for MSVC
2008-05-01 15:21:40 -06:00
Brian Paul
c1abd758c5
gallium: remove the unused softpipe_winsys code
...
The struct is still there though until all winsys layers are updated
2008-05-01 15:20:34 -06:00
Brian Paul
4687272b20
gallium: use screen->tex_surface_release()
2008-05-01 15:08:05 -06:00
Keith Whitwell
f067c6c452
tgsi: remove some bogus win vs. linux crud
...
Pass arguments properly in linux now. Still need to change this to use
a single calling convention on both platforms.
2008-05-01 20:49:45 +01:00
Keith Whitwell
2c89b75e36
rtasm: learn another version of push
2008-05-01 20:49:45 +01:00
Keith Whitwell
2004b8a769
draw: label fn args -- shouldn't this be defined where the fn is created?
2008-05-01 20:49:45 +01:00
Keith Whitwell
fb3623b235
rtasm: fix labels after (not so) recent change to allow dynamic fn growth
...
Using char * for labels doesn't work if you realloc the function
during assembly and free the old storage...
2008-05-01 20:49:45 +01:00
Keith Whitwell
b8936ca1c2
i915: avoid crashing on bad parameter
2008-05-01 20:49:45 +01:00
Keith Whitwell
26bcef898a
i915: fix warning
2008-05-01 20:49:44 +01:00
Keith Whitwell
f30285e99c
softpipe: fix warning
2008-05-01 20:49:44 +01:00
Keith Whitwell
0000792a20
sct: fix bug in remove_context_from_surface
2008-05-01 20:49:44 +01:00
Michel Dänzer
de7277f81a
gallium: Set sampler->min_lod instead of always reallocating pipe_textures.
2008-05-01 17:39:33 +01:00
Michel Dänzer
f1f52a8be9
gallium: Notify driver of texture updates in util_blit_pixels().
2008-05-01 17:30:17 +01:00
Keith Whitwell
419f3c4475
tgsi: restore HIGH_PRECISION setting
2008-05-01 15:45:51 +01:00
Keith Whitwell
afe67db803
tgsi: add some const qualifiers to immediate pointers
2008-05-01 15:37:30 +01:00
Keith Whitwell
bf1e120b31
mesa: squash harmless warning
2008-05-01 15:37:30 +01:00
Keith Whitwell
727257f320
rtasm: assert stack is fully popped in return
2008-05-01 15:37:30 +01:00
Keith Whitwell
6980823da9
draw: avoid aliasing warning
2008-05-01 15:37:30 +01:00
Keith Whitwell
47aa416821
tgsi: use EBX everywhere, be sure to push/pop it
2008-05-01 15:37:30 +01:00
Keith Whitwell
7810e7f623
tgsi: use x86_fn_arg instead of get_argument() -- it knows about push/pops to the stack
2008-05-01 15:37:30 +01:00
Keith Whitwell
1e4217e1b8
tgsi: use ESI instead of EBX on non-win32 platforms
2008-05-01 15:37:30 +01:00
Keith Whitwell
35b0efb8c6
gallium: do something sensible on the error path to try to avoid crashing in release builds
2008-05-01 15:37:30 +01:00
Alan Hourihane
e97bedb302
Fix build problem with MSVC
2008-05-01 14:56:11 +01:00
José Fonseca
073bb94a41
Add Brian's explanation for inheritance in C.
2008-05-01 22:32:49 +09:00
José Fonseca
c6fadd9fad
gallium: Add newline to eof.
2008-05-01 22:32:49 +09:00
Keith Whitwell
be7e1297f4
draw: squash warnings
2008-05-01 13:47:27 +01:00
Keith Whitwell
4584c0efbd
draw: turn on SSE swizzle code
2008-05-01 13:47:09 +01:00
Keith Whitwell
b59f9c95c1
gallium: add information to surface to identify which texture image it is pointing at
2008-05-01 12:28:59 +01:00
Keith Whitwell
228aaa6cab
softpipe: missing file
2008-05-01 12:24:23 +01:00