Re: [Mesa-dev] [PATCH] r600g: Unify SURFACE_SYNC packet emission for 3D and compute

2012-06-21 Thread Tom Stellard
On Tue, Jun 19, 2012 at 03:11:28PM -0400, Jerome Glisse wrote: > On Tue, Jun 19, 2012 at 2:06 PM, Tom Stellard wrote: > > On Tue, Jun 19, 2012 at 07:57:50PM +0200, Marek Olšák wrote: > >> Hi Tom, > >> > >> This adds new calls to r600_inval_xxx_cache, which justs sets the > >> dirty flag in the ato

Re: [Mesa-dev] [PATCH] r600g: Unify SURFACE_SYNC packet emission for 3D and compute

2012-06-19 Thread Marek Olšák
Ah ok. Nevermind then. Marek On Tue, Jun 19, 2012 at 8:06 PM, Tom Stellard wrote: > On Tue, Jun 19, 2012 at 07:57:50PM +0200, Marek Olšák wrote: >> Hi Tom, >> >> This adds new calls to r600_inval_xxx_cache, which justs sets the >> dirty flag in the atom "surface_sync_cmd" to true, but I couldn't

Re: [Mesa-dev] [PATCH] r600g: Unify SURFACE_SYNC packet emission for 3D and compute

2012-06-19 Thread Jerome Glisse
On Tue, Jun 19, 2012 at 2:06 PM, Tom Stellard wrote: > On Tue, Jun 19, 2012 at 07:57:50PM +0200, Marek Olšák wrote: >> Hi Tom, >> >> This adds new calls to r600_inval_xxx_cache, which justs sets the >> dirty flag in the atom "surface_sync_cmd" to true, but I couldn't find >> where the compute code

Re: [Mesa-dev] [PATCH] r600g: Unify SURFACE_SYNC packet emission for 3D and compute

2012-06-19 Thread Tom Stellard
On Tue, Jun 19, 2012 at 07:57:50PM +0200, Marek Olšák wrote: > Hi Tom, > > This adds new calls to r600_inval_xxx_cache, which justs sets the > dirty flag in the atom "surface_sync_cmd" to true, but I couldn't find > where the compute code calls r600_emit_atom. The proper way to emit > dirty atoms

Re: [Mesa-dev] [PATCH] r600g: Unify SURFACE_SYNC packet emission for 3D and compute

2012-06-19 Thread Marek Olšák
Hi Tom, This adds new calls to r600_inval_xxx_cache, which justs sets the dirty flag in the atom "surface_sync_cmd" to true, but I couldn't find where the compute code calls r600_emit_atom. The proper way to emit dirty atoms is in r600_state_common.c:843-845. Marek On Tue, Jun 19, 2012 at 11:24

[Mesa-dev] [PATCH] r600g: Unify SURFACE_SYNC packet emission for 3D and compute

2012-06-19 Thread Tom Stellard
Drop the compute specific evergreen_set_buffer_sync() function and instead use the r600_surface_sync_command atom for emitting SURFACE_SYNC packets. --- src/gallium/drivers/r600/evergreen_compute.c | 18 ++- .../drivers/r600/evergreen_compute_internal.c | 111 +++ ...