US 12,444,118 B2
Constant-based calculations in shader prologue shared function
Przemyslaw Szymanski, Gdansk (PL); and Rafal Rudnicki, Gdansk (PL)
Assigned to Intel Corporation, Santa Clara, CA (US)
Appl. No. 18/025,866
Filed by Intel Corporation, Santa Clara, CA (US)
PCT Filed Dec. 10, 2020, PCT No. PCT/US2020/064352
§ 371(c)(1), (2) Date Mar. 10, 2023,
PCT Pub. No. WO2022/125105, PCT Pub. Date Jun. 16, 2022.
Prior Publication US 2023/0343015 A1, Oct. 26, 2023
Int. Cl. G06T 15/00 (2011.01); G06T 1/20 (2006.01)
CPC G06T 15/005 (2013.01) [G06T 1/20 (2013.01)] 17 Claims
OG exemplary drawing
 
1. A computing device, comprising:
a central processing unit (CPU);
a network interface to connect the CPU to a network of CPUs; and
a graphics processing unit (GPU) including a memory to store code for multiple instances of a shader, including multiple instances of a primary shader function to compute instance-specific values, and a single instance of a shared function to compute a value used by the multiple instances of the shader and store the computed value in a shared memory for access by the multiple instances of the shader, the shared function identified based on a determination that code for the shared function is to access only data from a constant buffer; and
a graphics execution unit to execute the multiple instances, wherein to execute the multiple instances includes each of the multiple instances of the primary shader function to call the instance of the shared function to receive access to the computed value for use in computing the instance-specific values.