diff options
Diffstat (limited to 'drivers/gpu/pvr/sgx/sgxinit.c')
-rw-r--r-- | drivers/gpu/pvr/sgx/sgxinit.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/gpu/pvr/sgx/sgxinit.c b/drivers/gpu/pvr/sgx/sgxinit.c index f4d37fb1dab..edc56b60f78 100644 --- a/drivers/gpu/pvr/sgx/sgxinit.c +++ b/drivers/gpu/pvr/sgx/sgxinit.c | |||
@@ -1426,6 +1426,16 @@ PVRSRV_ERROR SGX_FreeMemTilingRange(PVRSRV_DEVICE_NODE *psDeviceNode, | |||
1426 | } | 1426 | } |
1427 | #endif | 1427 | #endif |
1428 | 1428 | ||
1429 | static IMG_VOID SGXCacheInvalidate(PVRSRV_DEVICE_NODE *psDeviceNode) | ||
1430 | { | ||
1431 | PVRSRV_SGXDEV_INFO *psDevInfo = psDeviceNode->pvDevice; | ||
1432 | |||
1433 | #if defined(SGX_FEATURE_MP) | ||
1434 | psDevInfo->ui32CacheControl |= SGXMKIF_CC_INVAL_BIF_SL; | ||
1435 | #else | ||
1436 | PVR_UNREFERENCED_PARAMETER(psDevInfo); | ||
1437 | #endif | ||
1438 | } | ||
1429 | 1439 | ||
1430 | PVRSRV_ERROR SGXRegisterDevice (PVRSRV_DEVICE_NODE *psDeviceNode) | 1440 | PVRSRV_ERROR SGXRegisterDevice (PVRSRV_DEVICE_NODE *psDeviceNode) |
1431 | { | 1441 | { |
@@ -1498,6 +1508,8 @@ PVRSRV_ERROR SGXRegisterDevice (PVRSRV_DEVICE_NODE *psDeviceNode) | |||
1498 | 1508 | ||
1499 | psDeviceNode->pfnDeviceCommandComplete = &SGXCommandComplete; | 1509 | psDeviceNode->pfnDeviceCommandComplete = &SGXCommandComplete; |
1500 | 1510 | ||
1511 | psDeviceNode->pfnCacheInvalidate = SGXCacheInvalidate; | ||
1512 | |||
1501 | 1513 | ||
1502 | 1514 | ||
1503 | psDevMemoryInfo = &psDeviceNode->sDevMemoryInfo; | 1515 | psDevMemoryInfo = &psDeviceNode->sDevMemoryInfo; |