mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +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
@@ -32,17 +32,18 @@ enum gp10b_programs {
|
||||
|
||||
void gp10b_cde_get_program_numbers(struct gk20a *g,
|
||||
u32 block_height_log2,
|
||||
u32 shader_parameter,
|
||||
int *hprog_out, int *vprog_out)
|
||||
{
|
||||
int hprog, vprog;
|
||||
|
||||
if (g->cde_app.shader_parameter == 1) {
|
||||
if (shader_parameter == 1) {
|
||||
hprog = GP10B_PROG_PASSTHROUGH;
|
||||
vprog = GP10B_PROG_PASSTHROUGH;
|
||||
} else {
|
||||
hprog = GP10B_PROG_HPASS;
|
||||
vprog = GP10B_PROG_VPASS;
|
||||
if (g->cde_app.shader_parameter == 2) {
|
||||
if (shader_parameter == 2) {
|
||||
hprog = GP10B_PROG_HPASS_DEBUG;
|
||||
vprog = GP10B_PROG_VPASS_DEBUG;
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@ struct sg_table;
|
||||
|
||||
void gp10b_cde_get_program_numbers(struct gk20a *g,
|
||||
u32 block_height_log2,
|
||||
u32 shader_parameter,
|
||||
int *hprog_out, int *vprog_out);
|
||||
bool gp10b_need_scatter_buffer(struct gk20a *g);
|
||||
int gp10b_populate_scatter_buffer(struct gk20a *g,
|
||||
|
||||
Reference in New Issue
Block a user