OSDN Git Service

r600g/compute: Don't initialize vertex_buffer_state masks to 0x2
authorTom Stellard <thomas.stellard@amd.com>
Tue, 19 Aug 2014 23:27:38 +0000 (16:27 -0700)
committerTom Stellard <thomas.stellard@amd.com>
Thu, 21 Aug 2014 13:12:12 +0000 (06:12 -0700)
commitbf7a60f41d897be4d9804ba7c46633e38501ffe7
tree3a908ad1ff50441d6c1d9ee0f76dc395623e30c2
parenta9f0b08bacc9422bf98ce14d97b6c60a1b80df04
r600g/compute: Don't initialize vertex_buffer_state masks to 0x2

cs_vertex_buffer_state.enabled_mask and
cs_vertex_buffer_state.dirty_mask are both updated when
r600_set_constant_buffer() is called, so we don't need to manually
update these values.

This fixes a crash with OpenCL programs that have a kernel with no
arguments.

https://bugs.freedesktop.org/show_bug.cgi?id=82671

CC: "10.2" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/r600/evergreen_compute.c