commit | 5dcd97f25c217450c9e3e0441246187219a01eca | [log] [tgz] |
---|---|---|
author | Tom Stellard <thomas.stellard@amd.com> | Tue Jan 27 16:35:21 2015 +0000 |
committer | Tom Stellard <thomas.stellard@amd.com> | Wed Jan 28 21:03:46 2015 +0000 |
tree | f87149603f89629be89d684116af8681212216ef | |
parent | 32206c5e560cea8c992ec983e7f5324493385ead [diff] |
radeonsi/compute: Allocate the scratch buffer during state creation This moves scratch buffer allocation from si_launch_grid() to si_create_compute_state(). This helps to reduce the overhead of launching a kernel and also fixes a bug in the code that would cause the scratch buffer to be too small if a kernel with smaller scratch size was launched before a kernel with a larger scratch size. Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>