|
@@ -28,10 +28,10 @@
|
|
|
#include "core_types.h"
|
|
|
#include "core_status.h"
|
|
|
#include "resource.h"
|
|
|
-#include "hw_sequencer.h"
|
|
|
#include "dm_helpers.h"
|
|
|
#include "dce110_hw_sequencer.h"
|
|
|
#include "dce110_timing_generator.h"
|
|
|
+#include "dce/dce_hwseq.h"
|
|
|
|
|
|
#include "bios/bios_parser_helper.h"
|
|
|
#include "timing_generator.h"
|
|
@@ -233,19 +233,6 @@ static void build_prescale_params(struct ipp_prescale_params *prescale_params,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-/* Only use LUT for 8 bit formats */
|
|
|
-static bool use_lut(const struct core_surface *surface)
|
|
|
-{
|
|
|
- switch (surface->public.format) {
|
|
|
- case SURFACE_PIXEL_FORMAT_GRPH_ARGB8888:
|
|
|
- case SURFACE_PIXEL_FORMAT_GRPH_ABGR8888:
|
|
|
- return true;
|
|
|
- default:
|
|
|
- return false;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
static bool dce110_set_input_transfer_func(
|
|
|
struct pipe_ctx *pipe_ctx,
|
|
|
const struct core_surface *surface)
|
|
@@ -264,7 +251,7 @@ static bool dce110_set_input_transfer_func(
|
|
|
build_prescale_params(&prescale_params, surface);
|
|
|
ipp->funcs->ipp_program_prescale(ipp, &prescale_params);
|
|
|
|
|
|
- if (surface->public.gamma_correction && use_lut(surface))
|
|
|
+ if (surface->public.gamma_correction && dce_use_lut(surface))
|
|
|
ipp->funcs->ipp_program_input_lut(ipp, surface->public.gamma_correction);
|
|
|
|
|
|
if (tf == NULL) {
|