Marek Olšák
faa16dc456
r600g: set correct tiling flags in depth info
...
The kernel currently overwrites the flags, but if we stopped doing that,
this would break badly.
2011-10-25 01:47:03 +02:00
Brian Paul
9dc7df1fea
util: handle failed mapping in u_upload_alloc()
...
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2011-10-24 16:39:58 -06:00
Brian Paul
19961da4cb
util: handle failed mapping in u_upload_alloc_buffer()
...
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2011-10-24 16:39:58 -06:00
Marek Olšák
cdaf9b89e4
r300g: expose ARB_ES2_compatibility by claiming FIXED format support
2011-10-24 21:05:38 +02:00
Adel Gadllah
fc8196f7a6
nv50: fix max texture levels
...
MAX_TEXTURE_2D_LEVELS and MAX_TEXTURE_CUBE_LEVELS are supposed to be
14 not 13, while MAX_TEXTURE_3D_LEVELS should be 12 not 10.
2011-10-24 20:07:22 +02:00
Marek Olšák
ef64da8f01
winsys/radeon: don't use the new GEM_WAIT ioctl for now
2011-10-24 20:01:14 +02:00
Mathias Fröhlich
2717b8f034
winsys/radeon: restore the old r600g winsys memory characteristics.
...
Use VRAM for static and immutable buffers. This restores the
recently removed r600g winsys behaviour for memory locations.
This also improoves rendering times on the gpu for some
OpenSceneGraph based test cases by about 15%.
Signed-off-by: Marek Olšák <maraeo@gmail.com>
2011-10-24 18:20:07 +02:00
Brian Paul
50b0069fc1
util: remove gotos in u_upload_mgr.c
...
We can trivially remove the gotos in two places in this code and make
it a bit more readable.
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2011-10-24 09:31:01 -06:00
Marek Olšák
21e3c585f7
r300g: don't call u_trim_pipe_prim in r300_swtcl_draw_vbo
...
This was dead code anyway.
2011-10-23 20:29:06 +02:00
Marek Olšák
89ce12a2d2
u_blitter: accept overriden width0 and height0
...
We'll use this soon.
2011-10-23 20:27:07 +02:00
Marek Olšák
37b62cc354
u_blitter: add a copy_texture function which uses views and not resources
...
The views (sampler views and surfaces) are great tools for changing resource
properties without having to change pipe_resource.
2011-10-23 20:27:06 +02:00
Brian Paul
33abbd4fbd
llvmpipe: point out that there's two stencil writemasks
...
In lp_build_stencil_op() the incoming 'stencil' var is a 2-element array.
There's a front-face writemask and a back-face writemask but we're ignoring
the later. This patch doesn't fix anything but at least points out the
problem.
2011-10-23 10:09:34 -06:00
Brian Paul
c7aa8da957
llvmpipe: compare front_facing to NULL to improve readability
...
Compare 'front_facing' to NULL to make it more obvious that front_facing
is a pointer and not a simple boolean value.
2011-10-23 10:09:34 -06:00
Brian Paul
903a14ed91
gallivm: added lp_build_print_ivec4() function
2011-10-23 10:09:33 -06:00
Mathias Fröhlich
b27a67af89
dri-r600: Hook up a drm_descriptor configuration function
...
Returns a configuration that makes the dri state-tracker-manager
throttle.
2011-10-23 09:08:18 +02:00
Mathias Fröhlich
d5bfcf73fd
r600g: make r[67]00 not bail out on PRED_SETNE_INT.
2011-10-23 08:57:43 +02:00
Dave Airlie
8b36958ceb
r600g: make if's use PRED_SETNE_INT no matter what.
...
This is more correct for TGSI if, and with native ints enabled
it fixes 25 piglit fails.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-10-22 20:15:58 +01:00
Dave Airlie
d54407040b
r600g: print inst in hex in dumps
...
since we have them as hex in the headers.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-10-22 20:15:57 +01:00
Dave Airlie
608a7009d9
r600g: drop specific i2f it should be a trans only op2.
...
Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-10-22 20:15:57 +01:00
Maarten Lankhorst
df8f864bf6
gallium/targets: Add vdpau target for nouveau
...
Should fall back to shader based decoding (g3dvl) for now.
This is probably broken on systems that support xvmc, because
nouveau_video_buffer_create has no way to know for what api
the buffer is created, so I think this call might need a
separate argument as workaround.
Signed-off-by: Maarten Lankhorst <m.b.lankhorst@gmail.com>
2011-10-21 23:39:01 +02:00
Christoph Bumiller
27b0c9d513
d3d1x: set primitive restart in the correct draw calls
2011-10-21 23:00:40 +02:00
Christoph Bumiller
bb0482a55b
nv50/ir: import SM4 converter
2011-10-21 23:00:40 +02:00
Christoph Bumiller
d988361ead
nouveau,nvc0: fix/improve handling of multiple constant buffers
2011-10-21 23:00:40 +02:00
Christoph Bumiller
28271fd00d
nvc0: add support for linear and buffer textures and RTs
2011-10-21 23:00:40 +02:00
Christoph Bumiller
73ea0e7fd4
nvc0: add support for clip distance shader outputs
2011-10-21 23:00:40 +02:00
Christoph Bumiller
b4ecef4b1b
nvc0: handle more query types
2011-10-21 23:00:40 +02:00
Christoph Bumiller
3cc1dd5b80
nvc0: fix location of the PrimitiveID output
2011-10-21 23:00:39 +02:00
Christoph Bumiller
3637537a1f
nvc0: prevent VERTEXID/INSTANCEID from consuming input slots
2011-10-21 23:00:39 +02:00
Christoph Bumiller
44c23e9052
nvc0: fixes for program tessellation parameters
2011-10-21 23:00:39 +02:00
Christoph Bumiller
8bc3a87f40
nv50,nvc0: reset per-instance state for inactive vertex elements
2011-10-21 23:00:39 +02:00
Christoph Bumiller
6994b57a50
nv50,nvc0: reset base element in draw_arrays
...
It affects VERTEX_BUFFER_FIRST,COUNT submission, too.
2011-10-21 23:00:39 +02:00
Christoph Bumiller
8828004e67
nvc0: apply first_layer offset to all resources with array_size
...
Makes CUBE arrays work with d3d1x.
2011-10-21 23:00:39 +02:00
Christoph Bumiller
840bc04b43
nvc0: emit state to allow GP to select the RT layer
2011-10-21 23:00:39 +02:00
Christoph Bumiller
6db14200eb
nvc0: validate GP samplers, textures
2011-10-21 23:00:39 +02:00
Christoph Bumiller
e104bb9f92
nvc0: fix clear_render_target/depth_stencil region
...
In all 3 dimensions (now clearing all layers too).
2011-10-21 23:00:39 +02:00
Christoph Bumiller
ff583a47ee
nvc0: fix assertion that immediate array buffer fits
2011-10-21 23:00:39 +02:00
Christoph Bumiller
52c8c52b22
nv50/ir: use RDSV to fetch FrontFacing before lowering
2011-10-21 23:00:39 +02:00
Christoph Bumiller
9c930639d9
nv50/ir: fix textureGrad with offsets and in non-FPs
2011-10-21 23:00:39 +02:00
Christoph Bumiller
0e4e0ca6df
nv50/ir: add wrap mode for shift operations
...
D3D1x specifies that only the low 5 bit of the shift are used.
2011-10-21 23:00:39 +02:00
Christoph Bumiller
974102c7c2
nv50/ir: initialize RelocInfo to 0
2011-10-21 23:00:38 +02:00
Christoph Bumiller
7920c3c192
nvc0/ir: fix emission of cvt when register and type size differ
2011-10-21 23:00:38 +02:00
Christoph Bumiller
37a08ddce5
nv50/ir: fix argument count for CUBE_ARRAY texture target
2011-10-21 23:00:38 +02:00
Christoph Bumiller
2ec5c8feb3
nvc0/ir: GP emit address must end up in $r0
2011-10-21 23:00:38 +02:00
Christoph Bumiller
30cb66cd74
nvc0/ir: TXQ requires different lowering from normal TEX
2011-10-21 23:00:38 +02:00
Christoph Bumiller
6b27f14680
nv50/ir: initialize default prog_info values for GP,TP
2011-10-21 23:00:38 +02:00
Christoph Bumiller
63ca1abcc4
nv50/ir: fix memory value equality check
2011-10-21 23:00:38 +02:00
Christoph Bumiller
e3a3844e8d
nv50/ir: fix leak in removal of graph root
2011-10-21 23:00:38 +02:00
Christoph Bumiller
d5cfab703b
d3d1x: fix/improve OMSetRenderTargets
...
Don't count trailing NULL RTVs.
Don't skip update if only DSV has changed.
2011-10-21 23:00:38 +02:00
Christoph Bumiller
3dff43d897
d3d1x: avoid translating invalid blend, depth or stencil state
2011-10-21 23:00:38 +02:00
Christoph Bumiller
74ff845e33
d3d1x: add support for buffer views
2011-10-21 23:00:38 +02:00