On 11-05-2020 14:19, Jani Nikula wrote:
On Mon, 11 May 2020, "Manna, Animesh" <animesh.manna@xxxxxxxxx> wrote:On 08-05-2020 16:44, Maarten Lankhorst wrote:Op 06-05-2020 om 15:11 schreef Animesh Manna:- struct intel_dsb *dsb = intel_dsb_get(crtc); + struct intel_dsb *dsb = (struct intel_dsb *)&crtc_state->dsb;Why the cast? Unconstify crtc_state as it's obviously not const any more.Dsb cmd buffer filling is done in load_lut function, so need to unconstify. Otherwise throwing warning during compilation.You shouldn't just throw the const away like that using a cast. It's a bad idea. Don't do it.
Hi Jani/Maarten, DSB instance was kept under intel_crtc to avoid typecasting. I do not know a way out to keep dsb-instance in intel_crtc_state and fill the dsb-cmd-buf using load-lut api. Maybe avoid using current load-lut api and create a separate api to fill the cmd_buf can be a solution. Can you please suggest. Regards, Animesh
BR, Jani.
_______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx