主权项 |
1. An apparatus for graphics processing comprising:
a graphics processing unit (GPU) configured to access a first memory unit according to one of an unsecure mode and a secure mode and a respective resource descriptor associated with each of a plurality of memory resources, the GPU comprising:
a memory access controller configured to read the respective resource descriptor associated with each of the plurality of memory resources,the memory access controller configured to receive a request for a memory transaction to the first memory unit,the memory access controller configured to, in response to the request, direct all read and write memory transactions relating to memory resources of the plurality of memory resources for which the respective resource descriptor is a secure resource descriptor to a secure portion of the first memory unit when the GPU is operating according to the secure mode,the memory access controller configured to, in response to the request, direct all read memory transactions relating to memory resources of the plurality of memory resources for which the respective resource descriptor is an unsecure resource descriptor to an unsecure portion of the first memory unit when the GPU is operating according to the secure mode, andthe memory access controller configured to, in response to the request, drop all write memory transactions relating to memory resources of the plurality of memory resources for which the respective resource descriptor is the unsecure resource descriptor when the GPU is operating according to the secure mode. |