Subversion Repositories Kolibri OS

Rev

Rev 5271 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5271 Rev 6104
Line 20... Line 20...
20
 * OTHER DEALINGS IN THE SOFTWARE.
20
 * OTHER DEALINGS IN THE SOFTWARE.
21
 *
21
 *
22
 * Authors: Christian König 
22
 * Authors: Christian König 
23
 */
23
 */
Line -... Line 24...
-
 
24
 
24
 
25
#include 
25
#include 
26
#include 
26
#include "radeon.h"
27
#include "radeon.h"
27
#include "radeon_asic.h"
28
#include "radeon_asic.h"
Line 463... Line 464...
463
bool uvd_v1_0_semaphore_emit(struct radeon_device *rdev,
464
bool uvd_v1_0_semaphore_emit(struct radeon_device *rdev,
464
			     struct radeon_ring *ring,
465
			     struct radeon_ring *ring,
465
			     struct radeon_semaphore *semaphore,
466
			     struct radeon_semaphore *semaphore,
466
			     bool emit_wait)
467
			     bool emit_wait)
467
{
468
{
468
	uint64_t addr = semaphore->gpu_addr;
469
	/* disable semaphores for UVD V1 hardware */
469
 
-
 
470
	radeon_ring_write(ring, PACKET0(UVD_SEMA_ADDR_LOW, 0));
-
 
471
	radeon_ring_write(ring, (addr >> 3) & 0x000FFFFF);
-
 
472
 
-
 
473
	radeon_ring_write(ring, PACKET0(UVD_SEMA_ADDR_HIGH, 0));
-
 
474
	radeon_ring_write(ring, (addr >> 23) & 0x000FFFFF);
-
 
475
 
-
 
476
	radeon_ring_write(ring, PACKET0(UVD_SEMA_CMD, 0));
-
 
477
	radeon_ring_write(ring, emit_wait ? 1 : 0);
-
 
478
 
-
 
479
	return true;
470
	return false;
480
}
471
}
Line 481... Line 472...
481
 
472
 
482
/**
473
/**
483
 * uvd_v1_0_ib_execute - execute indirect buffer
474
 * uvd_v1_0_ib_execute - execute indirect buffer