Marek Olšák
d3d41cbc35
r300g: fix vertex data swizzle
2010-01-18 02:35:08 -08:00
Marek Olšák
cd553ec8be
r300g: do not align compressed textures to a tile size
2010-01-18 02:35:08 -08:00
Chia-I Wu
064eb0a095
st/egl_g3d: Clean up for x11_drawable_get_depth.
...
Fix a wrong comment and remove an unnecessary #include.
2010-01-18 17:15:57 +08:00
Corbin Simpson
a16d353b5e
dri: Add an MSAA-enabled factor to DRI configs.
...
4 samples should be enough for GLUT to be satisfied, and I think most
of the HW that does any MSAA, can do it.
Note that any pipe that doesn't multisample can just ignore the
corresponding flag in pipe_rasterizer_state.
2010-01-18 01:13:33 -08:00
Corbin Simpson
c273ab007d
dri: Properly calculate number of modes for MSAA.
...
Split from the next patch for bisection purposes only.
2010-01-18 01:13:33 -08:00
Corbin Simpson
58a7d8db98
radeong: Check DRM version, and report stats.
2010-01-18 01:13:33 -08:00
Corbin Simpson
11a2bbc3e9
radeong: Use vram_size instead of vram_visible.
...
The kernel will decide on its own what to give us.
2010-01-18 01:13:33 -08:00
Chia-I Wu
8311a49b2d
progs/egl: Pass EGLDisplay to eglCopyBuffers.
...
X Display was wrongly passed to eglCopyBuffers.
2010-01-18 17:07:19 +08:00
Chia-I Wu
ede755af4c
st/egl_g3d: Add support for eglCopyBuffers.
...
It uses a slow path to copy the render buffer of the surface to the
target pixmap. We might be able to create a pipe context for
EGLDisplay's use and use a blitter context for the purpose. It is left
for a future consideration.
2010-01-18 17:07:06 +08:00
Chia-I Wu
f8244e2946
st/egl_g3d: Add is_pixmap_supported to native display interface.
...
The function may be used to support, for example,
EGL_MATCH_NATIVE_PIXMAP and EGL_KHR_image_pixmap.
2010-01-18 17:04:02 +08:00
Chia-I Wu
fda897ad71
st/egl_g3d: Update validate to use an attachment mask.
...
A validate call asks for the buffers of a native surface. Using a mask
to represent the interested buffers is more intuitive. It also rules
out corner cases such as a single attachment being listed multiple
times.
2010-01-18 14:28:13 +08:00
Chia-I Wu
1ed6311945
st/vega: Fix window resizing with egl_g3d.
...
egl_g3d calls st_set_framebuffer_surface on window resize. It updates
the renderbuffer's geometry and makes st_resize_framebuffer a no-op.
This commit improves the no-op check a little bit. It can do better
after gallium-fb-dimensions is merged.
2010-01-18 12:07:57 +08:00
Chia-I Wu
ef517c9385
st/vega: Call screen->update_buffer instead of winsys->update_buffer.
...
This removes the last reference to winsys and is per mesa/st.
2010-01-18 11:57:30 +08:00
Chia-I Wu
3b71386426
tgsi: Add missing semantic name in text parser.
...
This time, INSTANCEID is missing...
2010-01-18 11:57:30 +08:00
Jakob Bornecrantz
90cdf0d67c
cso: Add set_vertex_samplers function
2010-01-18 00:12:42 +00:00
Jakob Bornecrantz
2a60302e51
softpipe: Fix leak in vbuf draw module
2010-01-18 00:12:42 +00:00
Christoph Bumiller
1448d2f252
nv50: implement instanced drawing
...
Too bad we don't have hw array divisors or a method for
setting startInstance.
2010-01-17 17:48:01 +01:00
Jakob Bornecrantz
a4bbabf494
softpipe: Move st/python's malloc winsys to softpipe
...
Users of softpipe can still specify thier own winsys
but now there is a default one also that uses malloc.
This allows the malloc winsys to be shared with other
users of softpipe.
2010-01-17 16:44:39 +00:00
Jakob Bornecrantz
0e4e2c57d1
st/xlib: Make glXGetProcAddressARB visible
2010-01-17 16:44:39 +00:00
Jakob Bornecrantz
876a6b4865
gallium: Support swig "compiler" in p_compiler.h
2010-01-17 16:44:39 +00:00
Jakob Bornecrantz
31c626811a
i965g: Link against drm_intel instead of drm_radeon
2010-01-17 16:44:25 +00:00
Corbin Simpson
945cea01d9
r300g: Check for bogus texture targets.
2010-01-17 01:13:45 -08:00
Marek Olšák
b62d339301
r300g: fix the rasterization of secondary color
...
When the secondary color is used, the primary color must always be rasterized
regardless of whether it is used or not.
2010-01-17 01:10:58 -08:00
Marek Olšák
7d3090f0fe
r300g: fix vertex colors with 8 bits per channel
...
The piglit BGRA tests pass now.
2010-01-17 01:10:32 -08:00
Marek Olšák
c4a2f13a5c
r300g: simplify is_format_supported
2010-01-17 01:04:30 -08:00
Marek Olšák
8959608051
r300g: output texture debug messages if only RADEON_DEBUG=tex is set
2010-01-17 01:03:50 -08:00
Marek Olšák
08edbe9f14
r300g: move debug flags into r300_screen
2010-01-17 01:02:12 -08:00
Marek Olšák
21f3bbf149
r300g: disable the MIP filter for NPOT textures
...
Safety first.
2010-01-17 01:01:25 -08:00
Marek Olšák
37897a65e2
r300g: fix the CS size when emitting invariant state
2010-01-17 01:00:35 -08:00
Alan Coopersmith
816cb90e7c
radeon_compiler: include main/compiler.h for compiler portability macros
...
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Reviewed-by: Corbin Simpson <MostAwesomeDude@gmail.com>
2010-01-17 00:55:39 -08:00
Corbin Simpson
c69bd0ead7
r300g: Stop using indices.
...
Sorry, it was a good game, but it just doesn't work.
2010-01-16 18:17:40 -08:00
Corbin Simpson
eedebfa579
r300g: Respect fill modes in indices fallback.
2010-01-16 18:17:40 -08:00
Keith Whitwell
164fd16cfb
util: add generic ringbuffer utitilty
2010-01-16 21:15:55 +00:00
Chia-I Wu
dee52d5bd3
gallium: Fix uninitialized instance divisor and index.
2010-01-16 18:18:09 +01:00
Christoph Bumiller
83387cb6c4
nv50: fix tile flags for scanout tex usage
2010-01-16 18:07:31 +01:00
Christoph Bumiller
0ae3db1734
nv50: handle all and more system values
2010-01-16 18:07:31 +01:00
Christoph Bumiller
4c223aaa3b
nv50: hook up geometry programs
2010-01-16 18:07:31 +01:00
Christoph Bumiller
bbb615382d
nv50: support for geometry programs in nv50_program
2010-01-16 18:07:31 +01:00
Christoph Bumiller
e791e6f27c
nv50: get access to primitive input space
...
Vertex data in geometry programs is located in p[] space.
The base address in p[] for vertex i is located in vertex
attribute space, i.e. a[i << 2].
This means p[] is always accessed with an address register,
and I had to to mess with their allocation once again.
Also fixes negative offsets e.g. CONST[ADDR[0].x - 3].
2010-01-16 18:07:30 +01:00
Alex Deucher
8d24273750
r600: remove stray END_BATCH in blit code
2010-01-16 08:45:08 -05:00
Jakob Bornecrantz
a5c03bd6f1
draw: Fix memory leak in gs code
2010-01-16 10:44:57 +00:00
Dave Airlie
66e561a036
i965g: make xorg state tracker build i965g_drv.so
...
don't make modesetting_drv.so anymore
2010-01-16 19:28:45 +10:00
Alex Deucher
8b704396a3
r600: improve blit support
...
- fill in more src/dst formats
- disable depth copies for now
- set proper data formats in render target regs
- fill in additional default state
The swizzles on some of the less used mesa formats
are probably wrong.
2010-01-15 23:06:18 -05:00
Andre Maasikas
7283a246ce
r600: add initial blit support
2010-01-15 23:06:05 -05:00
Alex Deucher
ec8ce40083
r600: add r600_blit.c
...
Unfinished.
2010-01-15 23:05:56 -05:00
Patrice Mandin
923aab93d9
nouveau: nv30: Remove useless variables fs, txp. Also do not change txf, as bit 13 is in the texture format
...
Signed-off-by: Patrice Mandin <patmandin@gmail.com>
2010-01-15 22:29:13 +01:00
Michal Krol
e124080cd6
util: Handle FORMAT_Z32_FLOAT in util_pack_z().
2010-01-15 19:00:15 +01:00
Michal Krol
1433a2d935
util: Handle the remaining formats in pipe_put_tile_rgba().
2010-01-15 19:00:11 +01:00
Michal Krol
d29e72633c
util: Fix encoding for R8G8B8A8_UNORM formats and friends.
2010-01-15 19:00:09 +01:00
Michal Krol
42d55953b1
tgsi: Add ureg_property_gs_input_prim().
2010-01-15 19:00:06 +01:00