mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
gpu: nvgpu: Move CDE code to Linux module
CDE is only used in Linux platforms, and the code is highly dependent on Linux APIs. Move the common CDE code to Linux module and leave only the chip specific parts to HAL. Change-Id: I507fe7eceaf7607303dfdddcf438449a5f582ea7 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1554755 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
17451138cf
commit
c37c9baae6
@@ -28,15 +28,16 @@ enum programs {
|
||||
|
||||
void gm20b_cde_get_program_numbers(struct gk20a *g,
|
||||
u32 block_height_log2,
|
||||
u32 shader_parameter,
|
||||
int *hprog_out, int *vprog_out)
|
||||
{
|
||||
int hprog = PROG_HPASS;
|
||||
int vprog = (block_height_log2 >= 2) ?
|
||||
PROG_VPASS_LARGE : PROG_VPASS_SMALL;
|
||||
if (g->cde_app.shader_parameter == 1) {
|
||||
if (shader_parameter == 1) {
|
||||
hprog = PROG_PASSTHROUGH;
|
||||
vprog = PROG_PASSTHROUGH;
|
||||
} else if (g->cde_app.shader_parameter == 2) {
|
||||
} else if (shader_parameter == 2) {
|
||||
hprog = PROG_HPASS_DEBUG;
|
||||
vprog = (block_height_log2 >= 2) ?
|
||||
PROG_VPASS_LARGE_DEBUG :
|
||||
|
||||
@@ -20,6 +20,7 @@ struct gk20a;
|
||||
|
||||
void gm20b_cde_get_program_numbers(struct gk20a *g,
|
||||
u32 block_height_log2,
|
||||
u32 shader_parameter,
|
||||
int *hprog_out, int *vprog_out);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user